Quantcast
Channel: Configuration and Deployment
Viewing all articles
Browse latest Browse all 3561

web.config httpRedirect

$
0
0

Hey,

Anyone seen an issue where JavaScript seems to stop working, specifically localStorage, if you use httpRedirect in web.config.

Because I am! If I turn httpRedirect off all JS is fine. With httpRedirect on JS stops working!

Thanks. IIS 7.5.

EDIT: OK, what's happening is on initial page load, localStorage seems to be ignored, as does JQuery toggles. But if I initiate an Async Postback it kicks it back to life. I'm using localStorage to set element display status', and using JQuery toggles to toggle them. If I full refresh the page (Ctrl + R or F5) it's broken again until the first Async Postback.

As above, this behaviour is only evident with httpRedirect. If I do a Response.Redirect in the ASPX file it's absolutely fine.


Viewing all articles
Browse latest Browse all 3561


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>