New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
link_prefix does not work as expected #516
Comments
@href, opinions please? I had in my head that this ought to work for link generation but there is something to say for controlling this globally. Do we need two prefix mechanisms, one global and one per app, with second second overriding the first? I need to consider the implementation as I don't yet understand why it works globally. |
The earliest I can look at this is by the end of next week. The conference I'm co-organising is tomorrow ;) |
Seems to be fixed. |
As mentioned on discord link_prefix does not do work as expected. Using the code in this gist: https://gist.github.com/inytar/5cb0b7b4d192e22f83180ff99a2cc8be I expect to see:
but get:
I'm using morepath 0.17 on Python 3.5.
Some more experimenting shows that only the root App's link_prefix is used.
(As a discussion point: what should you expect when mounting an app on an other app? Use the link_prefix of the child or the parent app?)
The text was updated successfully, but these errors were encountered: