Append "/" to pgweb hosted URLs that currently lack one.
authorJonathan S. Katz <jonathan.katz@excoventures.com>
Sun, 15 Apr 2018 19:14:04 +0000 (15:14 -0400)
committerJonathan S. Katz <jonathan.katz@excoventures.com>
Sun, 15 Apr 2018 19:14:04 +0000 (15:14 -0400)
commit5a36dbc8adfa149f4c2cce5e846b2bcdffb36793
tree6d7ef65e71f2318cdc61ea2bf99f3ab522b9c89d
parentebfff4f2c547aed6badade0d60da513014f0952a
Append "/" to pgweb hosted URLs that currently lack one.

By default, Django expects URLs to end with a "/" but if it
accepts a request without a trailing slash, it will issue a
permanent redirect with the slash appended. While this is great,
it does mean an extra request to the server.

This patch adds a "/" to anchor tags that did not have one
already appended to it, thus helping to save time for a user
browsing .org as well as for the server.
27 files changed:
pgweb/account/views.py
templates/admin/core/organisation/change_list.html
templates/base/base.html
templates/core/community.html
templates/docs/docspage.html
templates/docs/index.html
templates/index.html
templates/misc/bug_header.html
templates/pages/about.html
templates/pages/about/contact.html
templates/pages/about/donate_pg_org.html
templates/pages/about/press/faq.html
templates/pages/community/irc.html
templates/pages/developer.html
templates/pages/developer/summerofcode.html
templates/pages/developer/summerofcode2011.html
templates/pages/developer/summerofcode2012.html
templates/pages/developer/summerofcode2013.html
templates/pages/developer/summerofcode2014.html
templates/pages/developer/summerofcode2016.html
templates/pages/developer/testing.html
templates/pages/download.html
templates/pages/download/linux/linux_source.inc
templates/pages/support.html
templates/pages/support/security/faq/2013-04-04.html
templates/security/security.html
templates/support/versioning.html