Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Canceling from the form and returning to the top level
Message
 
 
General information
Forum:
Javascript
Category:
Other
Miscellaneous
Thread ID:
01641209
Message ID:
01641264
Views:
17
>What do you mean by 'no luck' ? Does it not show the page at all or do you mean that it is still reloading the page? If it's reloading then it may be because you're in Hashbang mode. Snip:
>
>In this mode, $location uses Hashbang URLs in all browsers. Angular also does not intercept and rewrite links in this mode. I.e. links work as expected and also perform full page reloads when other parts of the url than the hash fragment was changed.

Originally it didn't do anything (e.g. path remained the same). Now that code works after I added the following lines into our app.js file:
 app.config(['$locationProvider', function ($locationProvider) {
        $locationProvider.html5Mode(true);
        $locationProvider.hashPrefix('!');
    }]);
Thanks a lot, I'll fix other preferences the same way. It works nicely now. I need to do more tests in other areas to make sure.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform