forked from I2P_Developers/i2p.www
Added / to the end of the base legacy url route
This is required because Flask is forcing (via 301) / to be appended to the url which previously resulted in no rule matching legacy pages. We could disable strict_slashes to fix this, but it might cause issues elsewhere.
This commit is contained in:
@@ -81,7 +81,7 @@ url('/status-<int:year>-<int:month>-<int:day>', 'legacy.legacy_status')
|
||||
url('/status-<int:year>-<int:month>-<int:day>.html', 'legacy.legacy_status')
|
||||
url('/<string:f>_<lang:lang>', 'legacy.legacy_show')
|
||||
url('/<string:f>_<lang:lang>.html', 'legacy.legacy_show')
|
||||
url('/<string:f>', 'legacy.legacy_show')
|
||||
url('/<string:f>/', 'legacy.legacy_show')
|
||||
url('/<string:f>.html', 'legacy.legacy_show')
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user