This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Disable autoredirect to main page.
#1
Hello my client has classic visualisation on android (shortcut on desktop) everytime when visualisation is minimised and open again he is redirected to main page of the visu. Is there any way how to fix visualization on last open room/widget.

Thank you
Reply
#2
This happens because the page is unloaded from memory and browser reloads the page from scratch.
You can use this Custom JS to remember current plan and show saved plan on every load. Plan id is store locally in browser storage. You need a recent firmware for this to work.
Code:
$(function() {
  var id = localStorage.getItem('planid');
  if (id) {
    showPlan(id);
  }

  $('body').on('showplan', function(event, id) {
    localStorage.setItem('planid', id);
  });
});
Reply
#3
Thank you works perfectly.
Reply


Forum Jump: