Properly escape stream/subject in left sidebar recent subjects narrows.

(imported from commit 4154d0dcd69af66b3a6bb07678c64e5eb39e6b07)
This commit is contained in:
Tim Abbott
2013-06-10 17:25:59 -04:00
parent da11e2e8df
commit 96ad1dd379
2 changed files with 2 additions and 1 deletions

View File

@@ -158,6 +158,7 @@ function rebuild_recent_subjects(stream, subject) {
if (subject === subject_obj.canon_subject) {
active_orig_subject = subject_obj.subject;
}
subject_obj.url = narrow.by_stream_subject_uri(stream, subject_obj.subject);
});

View File

@@ -1,7 +1,7 @@
<ul class='expanded_subjects' data-stream='{{stream}}'>
{{#each subjects}}
<li class='expanded_subject' data-name='{{subject}}'>
<a href='#narrow/stream/{{../stream}}/subject/{{subject}}'>
<a href='{{url}}'>
{{subject}}
<span class="subject_count {{#if is_zero}}zero_count{{/if}}">
(<span class="value">{{unread}}</span>)