[geany/www.geany.org] a889c9: Fix generated links in Pastebin documentation

Enrico Tröger git-noreply at xxxxx
Fri Jun 21 12:26:03 UTC 2019


Branch:      refs/heads/master
Author:      Enrico Tröger <enrico.troeger at uvena.de>
Committer:   Enrico Tröger <enrico.troeger at uvena.de>
Date:        Fri, 21 Jun 2019 12:26:03 UTC
Commit:      a889c9365a375e17e27537cd31336528a5c45a3f
             https://github.com/geany/www.geany.org/commit/a889c9365a375e17e27537cd31336528a5c45a3f

Log Message:
-----------
Fix generated links in Pastebin documentation


Modified Paths:
--------------
    pastebin/templates/pastebin/api.html
    pastebin/templates/pastebin/help.html

Modified: pastebin/templates/pastebin/api.html
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -27,7 +27,7 @@ <h1>API</h1>
     fields.append(('lexer', 'python'))
     encoded_data = urllib.parse.urlencode(fields).encode('utf-8')
     request = urllib.request.Request(
-        'https://{{ request.site.domain }}{% url 'snippet_api' %}',
+        '{{ request.scheme }}://{{ request.get_host }}{% url 'snippet_api' %}',
         encoded_data,
     )
     response = urllib.request.urlopen(request)


Modified: pastebin/templates/pastebin/help.html
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -13,7 +13,7 @@ <h2>What is pastebin?</h2>
 most people use it like this:</p>
 <ul>
 <li><a href="{% url 'snippet_new' %}">submit</a> a code fragment to pastebin,
-getting a url like https://{{ request.site.domain }}/p/abc1234</li>
+getting a url like {{ request.scheme }}://{{ request.get_host }}{% url 'snippet_details' 'abc1234' %}</li>
 <li>paste the url into an IRC or IM conversation</li>
 <li>someone responds by reading and perhaps submitting a modification of your code</li>
 </ul>



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list