title: javascript runtime error: unable to get property 'replace' of undefined or null reference
body: <p>I have seen postings for this errors in this forum, but I still cannot figure out where in my code that triggers the JavaScript error.  The call stack only shows angular.js code.  None of them is my code.  So it's very hard to pinpoint where things go wrong.  When I click continue, the main page of my app shows up, but none of the navigation links are navigable. Every link has the same url. "<a href="http://localhost:52334/myApp/#" rel="nofollow noreferrer">http://localhost:52334/myApp/#</a>:".  My application is running on IIS Express.  There is a  in the _Layout.cshtml. Thank you for your help.</p>
  
  <p><a href="https://i.stack.imgur.com/vFIDH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vFIDH.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/XB6nU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XB6nU.png" alt="enter image description here"></a></p>