You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Comment/shelve: Since we are still in setup mode at this point, isn't it possible to use current_app.add_url_rule here like before? I suspect it's because of this check. Which is a valid check in the sense that if you did url_for("invenio_pages.view"), you would probably get a random URL back?
In any case, I think the best would be to have unique human-friendly endpoint names for each page rule and point them all to the invenio_pages.views.view function. But this unique key is not currently part of the Page model, so that would mean opening a can of worms and updating the alembic recipes, etc.
The above also means that there's no way to do something like url_for("about_page") to get the URL for a page.
So maybe we just open an issue and revisit in the future to add this as a feature.
Originally posted by @slint in #60 (comment)
The text was updated successfully, but these errors were encountered: