From e0324a3562128c64892e13a0095bd1215c725629 Mon Sep 17 00:00:00 2001 From: Hannes Mannerheim Date: Sat, 7 Mar 2015 15:50:43 +0100 Subject: [PATCH] hashtags with special characters now works (better, at least) in browsing history --- js/dom-functions.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/dom-functions.js b/js/dom-functions.js index 0b1735e..b3fc67f 100644 --- a/js/dom-functions.js +++ b/js/dom-functions.js @@ -370,7 +370,8 @@ function setNewCurrentStream(stream,actionOnSuccess,setLocation) { // if this is a #tag stream else if(stream.substring(0,24) == 'statusnet/tags/timeline/') { var defaultStreamName = stream; - var streamHeader = '#' + stream.substring(stream.indexOf('/timeline/')+10,stream.indexOf('.json')); + var hashtagString = stream.substring(stream.indexOf('/timeline/')+10,stream.indexOf('.json')); + var streamHeader = '#' + replaceHtmlSpecialChars(decodeURIComponent(hashtagString)); } // if this is a notice stream else if(stream.substring(0,14) == 'statuses/show/') {