Template Provider not updated when Template page moved

I have an app similar to the FAQ example, with Classes, Templates, and Template Providers. When I moved all the Class, Template, and Template Provider pages to a different directory, the Template Providers did not get updated, they still referenced the Templates in the old directory. I had to delete and recreate each of the Template Providers.

Is this a bug?

I don’t think it is but it’s certainly a limitation. You should know that moving an application can break tons of things, including scripts which have the references hardcoded, etc.

You could create a jira issue to suggest an improvement for this specific case (and providing a PR would be awesome ;)).

Thanks

PS: I don’t understand why you had to delete the template providers. You just need to edit them to change the references.

OK, thanks. I was guessing that Templates and Template Providers was sort of a “built-in thing”, but I guess not. I’ll create a jira issue, but will first see if it’s possible for me to create a PR (not likely!).

For some reason, when I tried to edit a template provider and change the template, my templates did not appear in the dropdown. Maybe because I have moved them outside my Home?

I’m not very familiar with the template provider UI and how it works but all you need is to navigate to the template provide document and edit it on object mode (to do it manually).