Changeset 12546
- Timestamp:
- 04/18/2023 12:42:34 AM (3 years ago)
- File:
-
- 1 edited
-
sites/trunk/trac.wordpress.org/templates/site.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/trac.wordpress.org/templates/site.html
r12415 r12546 25 25 26 26 # <link rel="canonical"> 27 if req.environ['PATH_INFO'].startswith('/ticket/') : 28 canonical = 'https://' + req.environ['HTTP_HOST'] + '/ticket/' + req.environ['PATH_INFO'].split('/')[2] 27 if req.environ['PATH_INFO'].startswith( ( '/ticket/', '/changeset/' ) ) : 28 url_path_parts = req.environ['PATH_INFO'].split('/') 29 canonical = 'https://' + req.environ['HTTP_HOST'] + '/' + url_path_parts[1] + '/' + url_path_parts[2] 29 30 else : 30 31 canonical = false;
Note: See TracChangeset
for help on using the changeset viewer.