Branch: refs/heads/master Author: Enrico Tröger enrico.troeger@uvena.de Committer: Enrico Tröger enrico.troeger@uvena.de Date: Fri, 21 Jun 2019 12:26:03 UTC Commit: a889c9365a375e17e27537cd31336528a5c45a3f https://github.com/geany/www.geany.org/commit/a889c9365a375e17e27537cd313365...
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://%7B%7B 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://%7B%7B 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).