Skip to content

I don't understand template priorities #544

Closed Answered by s-cork
yahiakala asked this question in Q&A
Discussion options

You must be logged in to vote

Have you tried the redirects on the latest version of anvil extras?
If not can you try that and see if the redirect issue is fixed.
If you have, can you create a clone to show the issue with redirects.

Your "" path should always have the lowest priority.
templates are quite naive and just see if the url hash starts with the path you've given it
So the "" is always a valid template.

In general you should do priorities from most specific to least specific.
And redirects probably want a higher priority than templates.

We could probably make the "" template have -1 priority by default.
That'd probably make most apps not need to think about priorities

And we could improve the priority code, so…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by yahiakala
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants