This is a migrated thread and some comments may be shown as answers.

Manipulate window history collection

1 Answer 45 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Gal
Top achievements
Rank 1
Gal asked on 13 Apr 2016, 05:35 PM

Hello

I am using AppBuilder and AngualrJS.

 

I wonder what would be the recommended way for manipulating the url history collection (back button).

What I need it:

-In some cases remove the current page from the back list.

- In some cases to go to a different location than the previous page when clicking on back button (previous state of the same view).

 

Thanks in advanced,

 

Gal.

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 18 Apr 2016, 11:11 AM
Hi Gal,

You can replace the current location from the history by another location using the replace method of the Kendo Mobile Application:
replace

However, modifying the history to add a location that hasn't been visited isn't possible. If you want to reflect states of a view in the history, consider appending a query parameter when performing navigation. This will produce separate entries in the navigation and you will be able to navigate through them using the back button. For example:
kendo.mobile.application.navigate("components/homeView/view.html?t=" + new Date().getTime());


Regards,
Tsvetina
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
Tags
General Discussion
Asked by
Gal
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or