-
Notifications
You must be signed in to change notification settings - Fork 197
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
Issue #926: Use record_url for path to public page on admin interface #940
base: master
Are you sure you want to change the base?
Issue #926: Use record_url for path to public page on admin interface #940
Conversation
Have you checked this without having a plugin overriding the URL? I think the admin/public problem I mentioned in your initial issue would still happen here. |
Have not tested it yet, but I will! |
@zerocrates just tested finally, and on a default install this just links to |
And you're sure it's not linking to the admin |
Nope it was the regular |
I did test it. It makes the link go to the admin item show page. |
Huh strange -- let me see if I can replicate that on my end |
Apologies, I was checking the detail page, not the edit page; you're totally right. Do you have any suggestions about how to dynamically get the correct public item page URL here, in a way that would allow sites to use urls other than /items/show/ for the public item page? I'm not totally clear I understand the bit where the base URL for the front controller gets prepended to the result of |
I alluded to this problem in your original issue #926: links that go from one "side" to the other need special handling. For links created from strings, we have I think the answer here involves creating new |
Got it, thanks! Will submit a revised PR next time I can squeeze in some time.. |
For themes/modules that override default URLs, this ensures that the "View Public Page" link on the admin interface goes to the correct URL for an item on that particular site, rather than forcing
/items/show/<id>