discourse/app/views
Natalie Tay ced7833cd0
FEATURE: Append locale to links in crawler view if present (#34466)
This applies the following when
`SiteSetting.content_localization_enabled &&
SiteSetting.content_localization_crawler_param` and in crawler view.
- note: `content_localization_crawler_param` is an experimental site
setting
- attaches the following in crawler view, depending on the values in
`SiteSetting.content_localization_supported_locales`, assuming en, ja,
ko.
([old](https://developers.google.com/search/blog/2013/04/x-default-hreflang-for-international-pages)
but likely relevant)
```
      <link rel="alternate" href="https://nat-1.demo-by-discourse.com/" hreflang="x-default">
      <link rel="alternate" href="https://nat-1.demo-by-discourse.com/?tl=en" hreflang="en">
      <link rel="alternate" href="https://nat-1.demo-by-discourse.com/?tl=ja" hreflang="ja">
      <link rel="alternate" href="https://nat-1.demo-by-discourse.com/?tl=ko" hreflang="ko">
```
- appends the `tl` param based on the presence of it in the incoming
request
- this method puts every response for crawler requests through Nokogiri
parse.. so we'll have to see how this goes in practice
  
 ### Video
 
In the following video you can see each page has the code chunk above in
`head`, and each navigated page has the appropriate appended URL param.


/t/160415
2025-08-22 08:46:33 +08:00
..
about DEV: Add a nofollow to /u so user profiles don't get added as a target for crawling (#30693) 2025-01-13 13:50:00 +08:00
admin/backups FEATURE: further restrict downloading of backups 2017-03-01 08:28:34 -07:00
application UX: better error message when social login fails (#32772) 2025-05-20 16:22:38 +02:00
badges FIX: in case of orphan user records skip badge 2019-08-30 17:21:34 +10:00
categories UX: Include subcategories in crawler view (#21227) 2023-04-25 10:51:45 -04:00
common FEATURE: Append locale to links in crawler view if present (#34466) 2025-08-22 08:46:33 +08:00
default DEV: Show login-required splash in root route (take 2) (#32629) 2025-05-14 11:25:43 -04:00
email DEV: Add a nofollow to /u so user profiles don't get added as a target for crawling (#30693) 2025-01-13 13:50:00 +08:00
embed DEV: Add a nofollow to /u so user profiles don't get added as a target for crawling (#30693) 2025-01-13 13:50:00 +08:00
exceptions UX: Render emojis consistently on 404 page (#34115) 2025-08-06 11:14:23 +01:00
finish_installation FIX: Restore styles in finish-installation route (#34420) 2025-08-19 13:09:28 -04:00
groups FEATURE: add title tag for group detail page (#13702) 2021-07-12 20:05:57 +05:30
home_page DEV: Show login-required splash in root route (take 2) (#32629) 2025-05-14 11:25:43 -04:00
invites FIX: broken emoji url on password reset w/ subfolder (#19373) 2022-12-09 10:01:43 -07:00
layouts FEATURE: Append locale to links in crawler view if present (#34466) 2025-08-22 08:46:33 +08:00
list DEV: Add a nofollow to /u so user profiles don't get added as a target for crawling (#30693) 2025-01-13 13:50:00 +08:00
metadata DEV: Add support for Rails 6 2019-05-02 16:23:25 +10:00
offline UX: Remove Helvetica from our font stack (#11876) 2021-02-05 17:01:21 -05:00
posts FEATURE: use canonical links in posts.rss feed (#16190) 2022-03-15 20:17:06 +11:00
published_pages FIX: use normal logo in published pages if small not available. 2020-09-21 09:20:39 +05:30
qunit DEV: Reduce surface-area of ThemeJavascriptCompiler API (#33751) 2025-07-23 13:58:29 +01:00
robots_txt removed broken link and comments from no_index.erb (#25648) 2024-02-14 12:09:24 +08:00
safe_mode FIX: Prevent admin sidebar errors in safe mode (#25832) 2024-02-23 17:04:42 +10:00
search UX: better title on search page 2017-10-27 09:13:04 +05:30
session FEATURE: Rename 'Discourse SSO' to DiscourseConnect (#11978) 2021-02-08 10:04:33 +00:00
sitemap FEATURE: Let sites add a sitemap.xml file. (#16357) 2022-04-12 10:33:59 -03:00
static DEV: Stop using sprockets to compile service-worker js (#31796) 2025-03-13 12:49:33 +00:00
tags FIX: Use new tag routes (#8683) 2020-01-21 19:23:08 +02:00
topics FIX: Use correct subcategory subfolder path in crawler (#34250) 2025-08-12 16:14:50 +08:00
user_api_keys UX: Change the authorize button color to primary (#29666) 2024-11-08 17:33:50 -05:00
user_notifications FIX: Move custom digest text to correct spot (#33912) 2025-07-29 10:54:52 -05:00
users DEV: admin-login submit should be a button, not an input (#30156) 2024-12-06 11:48:15 -05:00