Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Canceling from the form and returning to the top level
Message
De
25/09/2016 09:55:47
 
 
Information générale
Forum:
Javascript
Catégorie:
Autre
Divers
Thread ID:
01641209
Message ID:
01641311
Vues:
20
>>>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.

As per the docs there are parts of the absUrl that you can change : path, search and hash ( or url which is all of the previous)
You cannot change protocol, host and port.
Not sure why you would want to change any of the setter only items anyway ?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform