Linking to wrong channel

When trying to access my page on another channel, it will be redirected to the base channel my page. (example.com/min-sida)
But if I’m on the base channel myPage.Href will only give me the (/min-sida)

var myPage = website.GetValue(AcceleratorWebsiteFieldNameConstants.MyPagesPage)?.MapTo();

Litium version: 7.2.1

When you do the linking you can do that in two ways, either with the specific channel that you want to link to or without channel information. If the link is without channel information the link is created to the page and during rendering the link is created for the current channel that visitor is browsing.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.