Changeset 8195
- Timestamp:
- 02/05/2019 01:46:40 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/trac.wordpress.org/templates/site.html
r8163 r8195 19 19 else : 20 20 support_link = 'https://wordpress.org/support/' 21 22 # <link rel="canonical"> 23 if req.environ['PATH_INFO'].startswith('/ticket/') : 24 canonical = 'https://' + req.environ['HTTP_HOST'] + '/ticket/' + req.environ['PATH_INFO'].split('/')[2] 25 else : 26 canonical = false; 21 27 22 28 profile_to_edit = 'https://wordpress.org/support/users/' … … 61 67 }); 62 68 </script> 69 </py:if> 70 71 <py:if test="canonical"> 72 <link rel="canonical" href="$canonical"/> 63 73 </py:if> 64 74 </py:match>
Note: See TracChangeset
for help on using the changeset viewer.