[tor-commits] [tpo/staging] Fix question permalinks

emmapeel at torproject.org emmapeel at torproject.org
Tue Oct 15 08:36:57 UTC 2019


commit 5c20a565298dc373408bc055d370258ed8e748f6
Author: RotationMatrix <52428419+RotationMatrix at users.noreply.github.com>
Date:   Wed Sep 4 13:39:39 2019 -0400

    Fix question permalinks
---
 templates/macros/question.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/templates/macros/question.html b/templates/macros/question.html
index 8a2501f..1b5fa59 100644
--- a/templates/macros/question.html
+++ b/templates/macros/question.html
@@ -13,7 +13,7 @@
          <li class="list-group-item">
            <a href="https://github.com/torproject/tpo/edit/master/content{{ item.path }}/contents.lr">{{ _("Edit this page") }}</a> -
            <a href="https://trac.torproject.org/projects/tor/wiki/doc/community/HowToReportBugFeedback">{{ _("Suggest Feedback") }}</a> -
-           <a href="{{ item|url }}">{{ _("Permalink") }}</a>
+           <a href="#{{ item._id }}" data-target="#{{ item._id }}">{{ _("Permalink") }}</a>
           </li>
        </ul>
     </div>





More information about the tor-commits mailing list