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

Try our conversational search powered by Generative AI!

Internal links with fragments are not captured by softlink indexer

Fixed in

EPiServer.CMS.Core 10.3.2

(Or a related package)

Created

Dec 29, 2016

Updated

Jan 13, 2017

Area

CMS Core

State

Closed, Fixed and tested


Description

Steps to reproduce

1. Create a new page
2. Add a link to an existing page using an external link with a fragment, for example, http://<sitehost>/en/search#frag.
3. Publish the page.
4. Right click the linked page and select Move to trash.

Expected: Warning that search is linked from the page created in 1.
Actual: No warning.

Investigation shows that call to Uri.IsWellFormedUriString (in XhtmlStringIndexer.cs) returns false for relative urls when they contain #. Perhaps relative links should transform to absolute ones (temporary) before calling IsWellFormedUriString