Fixes bad topic urls, reported by @cedlemo

This commit is contained in:
Stavros Polymenis 2017-10-20 22:52:08 +01:00
parent 731d5a344b
commit 04dc9a9a22

View File

@ -114,6 +114,6 @@ let fold_list ?(item_tpl=None) ~from ~n notes =
~init:(Meta.StringSet.empty)
~f:(fun a e -> Meta.unique_topics a e ) notes
in
Meta.StringSet.fold (fun e a -> a ^ "<li><a href=\"topic/" ^ e ^ "\">" ^ e ^ "</a></li>") topics ""
Meta.StringSet.fold (fun e a -> a ^ "<li><a href=\"/topic/" ^ e ^ "\">" ^ e ^ "</a></li>") topics ""
| _ -> prerr_endline ("unknown tag: " ^ e); "" in
Mustache.fold ~string ~section ~escaped ~unescaped ~partial ~comment ~concat