Possible bug: Shortcuts in LinkItemCollections

Vote:
 

Hi,

Is it a bug or feature that when I select a Page that is a "Shortcut to page in EPiServer", the shortcut target and not the shortcut page is stored?

For example, I have a Page A and Page B. Page B is a shortcut to Page A.

  • I edit a LinkCollection
  • First I add Page A
  • Then i add Page B
  • I click on Save on the modal LinkCollection editor
  • I click the "..." button to edit LinkCollection again
  • I click the Pen button for the link to Page B and see that the Page in EPiServer field refers to Page A, not Page B.

For some debugging I check what the stored value for this property is and this is what I see:

<links><a href="~/link/c929c3974b4f4022b54beffd88e45a75.aspx">Page A</a><a href="~/link/c929c3974b4f4022b54beffd88e45a75.aspx">Page B</a></links>

This feels a bit weird that the link to the shortcut target is stored. Imagine that I change the shortcut target of Page B.
This does not affect the link selected in the LinkCollection.

#74848
Sep 10, 2013 10:13
Vote:
 

I agree, I've had customers complain about this in the past. IMHO this is a bug that should be fixed.

Frederik

#74871
Sep 11, 2013 8:34
Vote:
 

Hi!

Thanks for the feedback. Unfortunately, this does not only affect link collections but rather all links in the system (html string, link properties). The reason for this is a nearly ancient design decition that it was better to resolve shortcuts early (when revolving URL:s on outgoing traffic) rather than on the fly for an incoming request. We have been talking for a long time about rewriting this and link handling in general to only have internal ("permanent") links, and public facing "friendly" links (today we actually have three diffrent link formats and do two layers of link conversions since we still support the pre-FURL format ("/templates/page.aspx?id=5).

To make a long explanation short: I hope that we can adress this and the duplicate URL-rewriting after we get the 7.5 release out of the building.

Regards
Linus Ekström
EPiServer Development Team

#74872
Sep 11, 2013 8:58
Vote:
 

Thank you Linus for the short version but I think I get it. Looking forward to 7.5

#74875
Sep 11, 2013 9:29
Vote:
 
#82350
Mar 11, 2014 10:59
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.