Skip to content

Commit

Permalink
workaround firefox different handling of hash decoding for unicode tags
Browse files Browse the repository at this point in the history
The problem is explained there :
http://stackoverflow.com/questions/1703552/encoding-of-window-location-hash

As a summary, the hash exposed in JS in Firefox is already URL-encoded, which
is not the case in Chrome for instance.
  • Loading branch information
niol committed Dec 29, 2016
1 parent 4c7beac commit d02a159
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/js/selfoss-events.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ selfoss.events = {
selfoss.filter.tag = '';
selfoss.filter.source = '';
if( selfoss.events.subsection.substr(0, 4) == 'tag-') {
selfoss.filter.tag = selfoss.events.subsection.substr(4);
selfoss.filter.tag = decodeURIComponent(selfoss.events.subsection.substr(4));
} else if( selfoss.events.subsection.substr(0, 7) == 'source-') {
var sourceId = parseInt(selfoss.events.subsection.substr(7));
if( sourceId ) {
Expand Down

0 comments on commit d02a159

Please sign in to comment.