UrlResolver.GetUrl returns incorrect Url for commerce content versions

Found in

EPiServer.Commerce 12.11.1

Fixed in

EPiServer.Commerce 12.17.0

Created

Jan 23 2019

Updated

Feb 15 2019

State

Closed, Fixed and tested


Description

Steps to reproduce

  1. Use Quicksilver.
  2. Change "Name in URL" (RouteSegment) for Fashion Node and publish so you have a minimum of two content versions with different "Name in URL" (RouteSegment).
  3. See code file StartController.cs to replace the existing Index function. (Retrieve all content versions of Fashion Node and use EPiServer.Web.Routing.UrlResolver.GetUrl on each.)
  4. In VS, set a breakpoint and debug to break point.

Expected:
Two different fashion node urls returned by GetUr()like:

  • en/fashion/mens
  • en/fashion/mens1

Actual:
Same fashion node url returned by GetUrl():

  • en/fashion/mens
  • en/fashion/mens