Backbutton Error

2 posts, 0 answers
  1. Ethan
    Ethan avatar
    6 posts
    Member since:
    Sep 2012

    Posted 21 Jun 2013 Link to this post

    If you have a back button in the header (like in the kendo mobile view demo), follow a link to an external site, then use the back button on the browser to go back to the kendo page, the back button no longer works. I had this happen with links to different sites on different views. Chrome throws the following error when you click the backbutton in the header after coming back from an external link:
    Uncaught TypeError: Cannot call method split of undefined

    It looks like the app loses its internal history when you leave and come back. Is there a way to check the history, or have it default to go back to the home view?

    I am using version 2013.1.514 of kendo mobile.
  2. Alexander Valchev
    Alexander Valchev avatar
    2895 posts

    Posted 24 Jun 2013 Link to this post

    Hello Ethan,

    I already replied in the support ticket that you opened on the same subject. For convenience I will paste my reply here as well:

    The problem occurs because when you open an external site the page reloads and mobile application loses its state.

    As a workaround I suggest you to navigate back manually on click of the backbutton. If an error occurs you should catch it and navigate to the root View. For example:
    <a class="nav-button" data-align="left" data-role="backbutton" data-click="goBack">Back</a>

    function goBack(e) {
        try {
        } catch (e) {

    Alexander Valchev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top