Skip to content

Hash Routing with Templates - Fail to make it work with some variation from the original #454

Answered by s-cork
RicardoFernandez-UY asked this question in Q&A
Discussion options

You must be logged in to vote

From what I can see you've misunderstood the path part of the Template argument

@routing.template(path='Marketing')
class RouterMarketing(RouterMarketingTemplate):

The above code says - my RouterMarketing template has all paths starting with Marketing

But the menu you build for the RouterMarketing form sets the hashes to (e.g.) "/mercados", which should be "Marketing/mercados".

assuming that's what you want the URLs to look like then fixing your built menu should fix the navigation

If you want different URLs you'll need to think about things a little differently.
If that's the case let me know and we can look at this.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@RicardoFernandez-UY
Comment options

Answer selected by RicardoFernandez-UY
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