• 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)
  • Thread Starter Azaziah

    (@azaziah)

    I noticed that all other special characters need to be decoded as well, this also affects other browsers.

    Here is a better fix that decodes them all with decodeURI()

    var hash = location.hash.substr( 4 );
    hash = JSON.parse(decodeURI(hash));

Viewing 1 replies (of 1 total)
  • The topic ‘Firefox escapes ” (bug)’ is closed to new replies.