[geany/www.geany.org] 0be960: Add trailing slashes for old deep link redirects
Enrico Tröger
git-noreply at xxxxx
Sun Jun 23 09:12:47 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: Sun, 23 Jun 2019 09:12:47 UTC
Commit: 0be9605106fdf340aac60d45629c56a19c5abae9
https://github.com/geany/www.geany.org/commit/0be9605106fdf340aac60d45629c56a19c5abae9
Log Message:
-----------
Add trailing slashes for old deep link redirects
This increases matching as some clients (probably bots and spiders)
sometimes add trailing slashes themselves and Django adds the slashes
in the first place as well if there is no match without the slash.
Modified Paths:
--------------
geany/urls_legacy.py
Modified: geany/urls_legacy.py
112 lines changed, 56 insertions(+), 56 deletions(-)
===================================================================
@@ -18,66 +18,66 @@
URL_MAPPING = {
# old urls mapped to new ones
- '/Category/DocumentationToDo': 'https://github.com/geany/geany/issues/',
- '/Category/Manual': '/documentation/manual/',
- '/Contribute/Developers': '/contribute/development/',
- '/Contribute/Documentation': '/contribute/documentation/',
- '/Contribute/Support': '/contribute/support/',
- '/Contribute/Translators': '/contribute/translation/',
+ '/Category/DocumentationToDo/': 'https://github.com/geany/geany/issues/',
+ '/Category/Manual/': '/documentation/manual/',
+ '/Contribute/Developers/': '/contribute/development/',
+ '/Contribute/Documentation/': '/contribute/documentation/',
+ '/Contribute/Support/': '/contribute/support/',
+ '/Contribute/Translators/': '/contribute/translation/',
'/i18n/': '/contribute/translation/statistics/',
- '/Developers/Developers': '/contribute/development/',
- '/Documentation/ChangeLog': 'https://github.com/geany/geany/commits/master', # page dropped
- '/Documentation/Documentation': '/documentation/manual/',
- '/Documentation/FAQ': '/documentation/faq/',
- '/Documentation/FAQdata': '/documentation/faq/',
- '/Documentation/Manual': '/documentation/manual/',
- '/Documentation/Questions': '/documentation/faq/',
- '/Documentation/ReleaseNotes': '/documentation/releasenotes/',
- '/Documentation/ReleaseNotesOld': '/documentation/releasenotes/',
- '/Documentation/Screenshots': '/documentation/screenshots/',
- '/Documentation/ToDo': 'https://github.com/geany/geany/issues/',
- '/Download/Extras': 'https://wiki.geany.org/', # page dropped
- '/Download/Git': '/download/git/',
- '/Download/OldExtras': 'https://wiki.geany.org/', # page dropped
+ '/Developers/Developers/': '/contribute/development/',
+ '/Documentation/ChangeLog/': 'https://github.com/geany/geany/commits/master', # page dropped
+ '/Documentation/Documentation/': '/documentation/manual/',
+ '/Documentation/FAQ/': '/documentation/faq/',
+ '/Documentation/FAQdata/': '/documentation/faq/',
+ '/Documentation/Manual/': '/documentation/manual/',
+ '/Documentation/Questions/': '/documentation/faq/',
+ '/Documentation/ReleaseNotes/': '/documentation/releasenotes/',
+ '/Documentation/ReleaseNotesOld/': '/documentation/releasenotes/',
+ '/Documentation/Screenshots/': '/documentation/screenshots/',
+ '/Documentation/ToDo/': 'https://github.com/geany/geany/issues/',
+ '/Download/Extras/': 'https://wiki.geany.org/', # page dropped
+ '/Download/Git/': '/download/git/',
+ '/Download/OldExtras/': 'https://wiki.geany.org/', # page dropped
'/Download/': '/download/releases/',
- '/Download/Releases': '/download/releases/',
- '/Download/SVN': '/download/git/',
- '/Download/ThirdPartyPackages': '/download/third-party/',
- '/Gallery/Main': '/documentation/screenshots/',
- '/Gallery/Test': '/documentation/screenshots/',
- '/Geany/ChangeLog': 'https://github.com/geany/geany/commits/master', # page dropped
- '/Geany/FAQ': '/documentation/faq/',
- '/Geany/Screenshots': '/documentation/screenshots/',
- '/Geany/Support': '/support/',
- '/Geany/Troubleshooting': '/support/',
- '/Main/About': '/about/geany/',
- '/Main/AboutThisSite': '/',
- '/Main/AllFiletypes': '/about/filetypes/',
- '/Main/Authors': '/about/geany/',
- '/Main/Blog': '/news/',
- '/Main/BlogArchive': '/news/',
- '/Main/HomePage': '/',
- '/main/homepage': '/',
- '/Main/Reviews': '/', # page dropped
- '/Main/Thanks': '/', # page dropped
- '/Main/WikiSandbox': '/', # page dropped
+ '/Download/Releases/': '/download/releases/',
+ '/Download/SVN/': '/download/git/',
+ '/Download/ThirdPartyPackages/': '/download/third-party/',
+ '/Gallery/Main/': '/documentation/screenshots/',
+ '/Gallery/Test/': '/documentation/screenshots/',
+ '/Geany/ChangeLog/': 'https://github.com/geany/geany/commits/master', # page dropped
+ '/Geany/FAQ/': '/documentation/faq/',
+ '/Geany/Screenshots/': '/documentation/screenshots/',
+ '/Geany/Support/': '/support/',
+ '/Geany/Troubleshooting/': '/support/',
+ '/Main/About/': '/about/geany/',
+ '/Main/AboutThisSite/': '/',
+ '/Main/AllFiletypes/': '/about/filetypes/',
+ '/Main/Authors/': '/about/geany/',
+ '/Main/Blog/': '/news/',
+ '/Main/BlogArchive/': '/news/',
+ '/Main/HomePage/': '/',
+ '/main/homepage/': '/',
+ '/Main/Reviews/': '/', # page dropped
+ '/Main/Thanks/': '/', # page dropped
+ '/Main/WikiSandbox/': '/', # page dropped
'/Site/AllRecentChanges/': '/news/feed/',
- '/Site/Authors': '/about/geany/',
- '/Support/Bugs': '/support/bugs/',
- '/Support/BuildingFromSource': 'https://www.geany.org/manual/index.html#installation',
- '/Support/BuildingOnWin32': 'https://wiki.geany.org/howtos/win32/msys2',
- '/Support/Contributions': '/contribute/',
- '/Support/CrossCompile': 'https://wiki.geany.org/howtos/win32/crosscompile',
- '/Support/Developers': '/contribute/development/',
- '/Support/Hacking': '/documentation/hacking/',
- '/Support/I18N': '/contribute/translation/',
- '/Support/IRC': '/support/irc/',
- '/Support/MailingList': '/support/mailing-lists/',
- '/Support/PluginWishlist':
+ '/Site/Authors/': '/about/geany/',
+ '/Support/Bugs/': '/support/bugs/',
+ '/Support/BuildingFromSource/': 'https://www.geany.org/manual/index.html#installation',
+ '/Support/BuildingOnWin32/': 'https://wiki.geany.org/howtos/win32/msys2',
+ '/Support/Contributions/': '/contribute/',
+ '/Support/CrossCompile/': 'https://wiki.geany.org/howtos/win32/crosscompile',
+ '/Support/Developers/': '/contribute/development/',
+ '/Support/Hacking/': '/documentation/hacking/',
+ '/Support/I18N/': '/contribute/translation/',
+ '/Support/IRC/': '/support/irc/',
+ '/Support/MailingList/': '/support/mailing-lists/',
+ '/Support/PluginWishlist/':
'https://github.com/geany/geany-plugins/issues?q=is%%3Aissue+label%%3Afeature+',
- '/Support/Plugins': '/support/plugins/',
- '/Support/RunningOnWindows': 'https://wiki.geany.org/howtos/win32/running',
- '/Support/VerifyGPGSignature': '/support/verify-gpg-signature/',
+ '/Support/Plugins/': '/support/plugins/',
+ '/Support/RunningOnWindows/': 'https://wiki.geany.org/howtos/win32/running',
+ '/Support/VerifyGPGSignature/': '/support/verify-gpg-signature/',
# various old deep links (catch all)
'/images/.*.png/': '/media/uploads/screenshots/geany_light_2019-05-20.png',
--------------
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