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
The LinkFieldWidget introduced in the Link content type to select a target object or URL is a nice usability addition (6daea2d5a and aea91f19a2).
However, the view template now renders a URL with a resolveuid/.....uid.... in it when the user selects an internal object as the target for remoteUrl.
This is ugly and does not convey the expected information to the editor user. As an editor, I want to see the path to the object in the URL, not a uid.
(I can hover the mouse on the link and see the actual path in the URL displayed by the browser, showing that the href attribute has the full path and not a resolveuid.)
The text was updated successfully, but these errors were encountered:
link_url = context.unrestrictedTraverse('@@link_redirect_view').absolute_target_url()
display_link = context.unrestrictedTraverse('@@link_redirect_view').display_link()
root_url = context.unrestrictedTraverse('@@plone_portal_state').navigation_root_url
if 'resolveuid' not in link_url:
url = link_url
else
url = root_url + display_link['meta']
this is what I use to display the Link absolute url. The real fix is to update @@link_redirect_view to provide a method to display the absolute_url. The Link type uses 2 fields, I think it should use just one to store the external url or the uid. Or ad an absolute_url method that resolve the uid url (maybe using the catalog?).
The
LinkFieldWidget
introduced in the Link content type to select a target object or URL is a nice usability addition (6daea2d5a and aea91f19a2).However, the view template now renders a URL with a
resolveuid/.....uid....
in it when the user selects an internal object as the target forremoteUrl
.This is ugly and does not convey the expected information to the editor user. As an editor, I want to see the path to the object in the URL, not a uid.
(I can hover the mouse on the link and see the actual path in the URL displayed by the browser, showing that the
href
attribute has the full path and not a resolveuid.)The text was updated successfully, but these errors were encountered: