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:
01641310
Views:
24
>>So, if I have the following in the app.js
>>
>>
>>//app.config(['$locationProvider', function ($locationProvider) {
>>    //    $locationProvider.html5Mode(true);
>>    //    $locationProvider.hashPrefix('!');
>>    //}]);
>>
>>uncommented, then we loose the Specials/Specials part in URL when we go to a particular Edit page from the Index page.
>>
>>I had to comment these lines, but now $location.path('/') just adds # at the end of URL and doesn't strip Items/Preferences part as I want and as it works if I uncomment these lines above.
>>
>>http://localhost:9999/Items/Preferences#/
>>
>>
>>Do you see a way to keep the $locationProvider to be default, but yet correctly adjust path in URL without a re-loading the page?
>
>Might be wrong but I don't think it's possible. As per the docs Hashbang mode will reload the page. If switching to HTML5 mode gives only a couple of problems it might be best to work on correcting those in that mode ?
>

Looks like in our application these problems outweigh the benefits. Is there a way to change absUrl? We do have a service returning baseUrl I could have used.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform