Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I created virtual directory on IIS called SA and if typed "Localhost/SA" or "Localhost/Sa/" everything working fine but if i typed the URL Caseinsensitive like this "Localhost/Sa" without slash in the end routes failed to return any page.
- if i disabled html5mode, it's getting "404 page not found" page.
$locationProvider.html5Mode(false);

What I have tried:

- Here's the workarounds that i used :
JavaScript
$urlMatcherFactory.caseInsensitive(true);
    $urlMatcherFactory.strictMode(true); // or off nothing is work

    $urlRouterProvider.rule(function ($injector, $location) {
               var path = $location.path(), normalized = path;//.toLowerCase();
               template = path;

               if (path !== normalized) {
                  $location.replace().path(normalized);
               }
              }
           });

- tried to concatenate "/" to the end of the URL by adding $urlRouterProvider.rule but it's not working also, and couldn't concatenate "/" to the end of the URL before angular bootstrap.

I am done with this issue please help.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900