U4-7002 - Virtual path issue - Umbraco.Web.UriUtility.ToAppRelative() too greedy

Created by Stefan Kip 21 Aug 2015, 08:48:48 Updated by Stephan 24 Aug 2015, 15:28:55

Let's say you're running umbraco inside a virtual application/path, called 'foo'. The Umbraco.Web.UriUtility.AppPathPrefix property will have a value of '/foo'. The ToAppRelative method, which strips virtual directory if any, is too greedy. If I pass the virtualPath argument as '/footest', it will strip '/foo'. Instead it should check for '/foo/' I guess.


Stephan 24 Aug 2015, 15:16:55


Stephan 24 Aug 2015, 15:28:47

pushed a950acbaba5caf6eeb9d15c661d74eed61186aa4

Priority: Normal

Type: Bug

State: Fixed

Assignee: Stephan

Difficulty: Normal


Backwards Compatible: True

Fix Submitted:

Affected versions: 7.2.8

Due in version: 7.3.0


Story Points: