Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

UrlResolver.GetUrl returns URL for content that is not IRoutable

Found in

EPiServer.CMS.Core 9.0.0

Fixed in

EPiServer.CMS.Core 9.2.0

(Or a related package)

Created

Sep 16, 2015

Updated

Dec 12, 2016

Area

CMS Core

State

Closed, Fixed and tested


Description

When asked for the public url (using EPiServer.Cms.Shell.IContentExtensions.PublicUrl) of a content item that does not implement IRoutable, the system will traverse the tree upwards until it finds an item that is routable, and use that as the url. The expected behavior should be to not return a url for content that is not routable. If that would be the case, the view mode link has code that will fallback to use the site url, which is the behavior we want.

Steps to reproduce

1. Install site Commerce 9 from VS
2. Add Beta user to EpiserverFramework.config to show New Marketing (Beta)
3. Open Marketing (Beta) tab
4. Go to View Mode by click on Icon that looks like a globe

(Look at attachment to see the wrong link)

Expected: Redirect to View mode
Actual: Error page