Firefox escapes ” (bug)
-
If filter page is re-loaded in Firefox, the search gets broken.
in sf.js there is:
var hash = JSON.parse( location.hash.substr( 4 ) );
It should for example return “search-id”:”filter-name”}
but in Firefox the hash = {%22search-id%22:%22filter-name%22}
which breaks the search.This is a working work-around solution:
var hash = location.hash.substr( 4 );
if(navigator.userAgent.toLowerCase().indexOf(‘firefox’) > -1)
{
hash = hash.split(‘%22’).join(‘”‘);
}hash = JSON.parse( hash );
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Firefox escapes ” (bug)’ is closed to new replies.