on 03-04-2015 3:58 PM
Hi,
Is there a way to support the browser's back button in UI5 applications?
Meaning, when the hash changes as I route between views, browser's back button will take me through the previous hash entries (and not to the previous HTML page, disregarding the hash, as it does now).
Thank you
Nadav
Hi Nadav
Try history.back() method it's works like browser button 'Back' else you should use routing.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am not sure what you mean.
Like one of the apps has up and down buttons to navigate through details of search results
like
index.html#/detail/00008827 -> index.html#/detail/00008826 -> index.html#/detail/00008820
navigation is done via that._oRouter.navTo("detail", { RecNo: oObject.RecNo });
and when I click Back I go from index.html#/detail/00008820 to index.html#/detail/00008826 and then to index.html#/detail/00008827
so Back button technically does what are you describing if you use router.navTo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nadav,
Trying using this:
url = window.document.referrer;
window.location.assign(url);
Hope this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.