I'm using url_for('module/myaction/id/3')
to create links in modified admin generator screens. Whenever I make a new action and try to link to it with url_for ('module/action/id/3')
, I get /module/myaction/action
.
When I try url_for('module/3/myaction')
i get the same result.
However when I use url_for('module/myaction?id=3')
I get the expected result: module/3/myaction
I have only the default admin generated routing rules in my routing file.
Is this behaviour expected?