Offline URL loosing current page information

0
0

Hello,

is it possible to keep the current url information when returning from offline mode?

If the user was at url http://example.com/Page?value=42#item=12  and goes offline he gets redirected to http://example.com/Offline/Default.html. When the connection is back online he gets redirected to http://example.com/

My idea is to add the url to the offline page like http://example.com/Offline/Default.html#Page?value=42#item=12. With this it is possible to return to the correct url.

best regards

Bernhard

  • You must to post comments
0
0

Hi Bernhard,

Thank you for reaching out,

We’ll prepare a sample for you to demonstrate the navigation process in Wisej.NET!

But to not keep you hanging, you should be able to save the hash in a Cookie or LocalStorage and then retrieve it in an Application.ApplicationRefresh event.

Best,
Alaa

//

  • Bernhard Lang
    Hi Alaa, I tried using Session Storage (since this is per tab) but I was not able to differentiate between a regular navigation and coming back online. Also ApplicationRefresh is not called when the session expired or the server was restarted. So we also need to check in Page_Load.
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.