Wagtail Menu generates incorrect Custom URL

ぐ巨炮叔叔 提交于 2019-12-13 04:24:47

问题


I have a conventional Wagtail Main Menu bar with one exception. One Menu entry points to a URL supported by a Django TemplateView. In the menu in Wagtail Admin, the menu item uses the custom URL instead of specifying an internal page. If I do a View Live from the Wagtail admin to the top level page then select the Django page, it works as expected. However, if I am somewhere within the site and click on the menu item, it generates a url that is the URL of the page I happen to be on with the Custom URL appended.

I'm concerned that there may be another setting or something that I need. I've read pretty much everything I can find (hooks, use_specific, q's on SO, ..) but am either not understanding something or maybe there is a bug.

I've tried to step through the flow of the templates generating the page, but the logic is pretty deep and I got lost. If someone can tell me where I might look to figure out the problem, I'd really appreciate it.

--Don

来源:https://stackoverflow.com/questions/55016463/wagtail-menu-generates-incorrect-custom-url

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!