internal path and URL edits
Added by Antoine Scherrer almost 11 years ago
Hello,
I am having troubles using the internal paths with wt 3.2.0.
When I register a callback for internal path changes (using WApplication::internalPathChanged()), it isn't called when I edit the URL manually.
For instance if I enter in my browser the URL http://localhost:8000/test, then no event is fired, but if I enter http://localhost:8000/#/test, then it works (with /test as internal path).
Although now if I change the url to http://localhost:8000/testtest then it is reverted to http://localhost:8000/test and the callback isn't called...
Can somebody explain to me how can I make my application react to manual URL changes without adding a # ?
Thanks a lot,
Antoine
Replies (3)
RE: internal path and URL edits - Added by Wim Dumon almost 11 years ago
Hello Antoine,
Changing the path manually causes a new session to be created, so internalPathChanged() won't be called.
BR,
Wim.
RE: internal path and URL edits - Added by Antoine Scherrer almost 11 years ago
Thanks for your reply,
This is true if reload-is-new-session
is set to true, which is not the case in my application.
Is there a way to obtain internalPathChanged() to be called in that case ?
Regards,
Antoine
RE: internal path and URL edits - Added by Wim Dumon almost 11 years ago
Hi Antoine,
That doesn't sound very expected. Please file a bug report (through the Issues link at the top of the page), preferably with a patch that fixes the issue ;-).
BR,
Wim.