>>>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 ?
>
>Unfortunately, in the default mode the url returns / and path returns nothing. The absUrl returns the full correct path.
I don't see that behaviour. What is the absolute url (in both Hashbang and HTML5 modes) and what do expect to see in $location.path() ?
> So, I can not figure out if it's either possible to get rid of the Items/Preferences part in the path. It only works correctly in Html5 mode. I guess I have to leave with the window.location.href and full page re-load approach as it was.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement