0

I currently have a .NET angular 2 program, with a route styled as

<ControllerName>/:id

Run on localhost with IIS Express, the id route param automatically converts to lowercase in the URL without me expressly doing any extra formatting. When calling the same controller and using matrix notation to input ID, however, it loses it's ability to automatically become lowercase

<ControllerName>;id=<CAPSGUID>

Curious thing is, when I host this on an IIS server, this functionality is somehow lost and the id route param remains upper case either way. Does anyone have any experience as to why this might happen? I've been having a hard time trying to properly word the question to get any related information.

Jonathan Niu
  • 311
  • 1
  • 8
  • I tried moving the locally hosted project to local IIS instead of IIS express, and the automatic lowercase redirect is gone. Seems to be function of IIS Express that I've possibly inadvertently enabled. Anyone familiar with IIS Express options that could possibly be responsible for this behavior? – Jonathan Niu Sep 15 '17 at 07:36

1 Answers1

1

I couldn't find out the reason this was happening, and through the course of my testing the functionality disappeared. I ended up using a custom url serializer implementing DefaultUrlSerializer and adding conditions in which to automatically lowercase my GUID component. Hope this helps somebody.

Jonathan Niu
  • 311
  • 1
  • 8