David Taylor
4a7e69d8ee
UX: Include message when crawler content is omitted ( #26325 )
...
To improve performance, we omit the basic-HTML version of pages when users are logged in, or when they are using a modern mobile device. This can be confusing when analysing the SEO of sites, so this commit adds a short static message when content is omitted.
2024-03-22 17:24:57 +00:00
Alan Guo Xiang Tan
5d1a9a44c6
PERF: Avoid calling the same translation twice when rendering lists view ( #22976 )
...
Why this change?
In production, this appeared as a small hotspot as where we're calling
`poster.name_and_description` twice which in turns makes a method call
to `I18n.t`. When we're rendering a topic list with many topics and each
topic has many posters, this repeated and unnecessary method call
quickly adds up.
2023-08-04 13:38:41 +08:00
Bianca Nenciu
0736611423
SECURITY: Hide restricted tags in noscript view
...
The hidden tags are usually filtered out by the serializer, but the
noscript view uses the topic objects instead of the serialized objects.
2023-07-28 12:53:50 +01:00
Jordan Vidrine
d40143371b
UX: Style edits ( #19927 )
2023-02-15 11:02:16 -06:00
Ayke Halder
569299b7a9
DEV: use structured data in topic-list for referencing only ( #16235 )
...
This simplifies the ItemList to only be a point of reference to the
actual DiscussionForumPosting objects.
See "Summary page": https://developers.google.com/search/docs/advanced/structured-data/carousel?hl=en#summary-page
Co-authored-by: Bianca Nenciu <nenciu.bianca@gmail.com>
2022-12-05 18:00:32 +02:00
Ayke Halder
28bb9e11f4
FEATURE: add nofollow to RSS alternate link in topics and categories ( #16013 )
...
* FEATURE: add nofollow to RSS alternate link in topics and categories
* Rspec tests for category and topic view: add nofollow to RSS alternate link
2022-03-09 16:34:02 +11:00
Vinoth Kannan
33eae4cbd8
FEATURE: add period filter in top topics route for tags. ( #13415 )
...
And also move all the "top topics by period" routes to query string param.
/top/monthly => /top?period=monthly
/c/:slug/:id/l/top/monthly => /c/:slug/:id/l/top?period=monthly
/tag/:slug/l/top/daily => /tag/:slug/l/top?period=daily (new)
2021-07-06 15:25:11 +05:30
Gerhard Schlager
d055552994
Fix i18n issues reported on Crowdin ( #11747 )
...
* Pluralize `groups.errors.adding_too_many_users`
This fixes https://discourse.crowdin.com/translate/f3230e7607a36bb0a2f97fd90605a44e/248/en-ar#53882
* Pluralize `js.composer.error.title_too_short`
This fixes https://discourse.crowdin.com/translate/f3230e7607a36bb0a2f97fd90605a44e/246/en-ar#41172
* Pluralize `js.composer.error.title_too_long`
This fixes https://discourse.crowdin.com/translate/f3230e7607a36bb0a2f97fd90605a44e/246/en-ar#41174
* Pluralize `js.composer.error.post_length`
This fixes https://discourse.crowdin.com/translate/f3230e7607a36bb0a2f97fd90605a44e/246/en-ar#41178
* Pluralize `js.topic.progress.jump_prompt_of`
This fixes https://discourse.crowdin.com/translate/f3230e7607a36bb0a2f97fd90605a44e/246/en-ar#41958
* Use translations to join strings about posters
This fixes https://discourse.crowdin.com/translate/f3230e7607a36bb0a2f97fd90605a44e/248/en-ar#49334
It also makes some changes to the crawler view:
* Removes `poster.moreCount` which is only available on the client for PMs
* CSS class names are actually stored in `poster.extras` instead of `poster.extraClasses`
* Stop concatenating category stats
This fixes https://discourse.crowdin.com/translate/f3230e7607a36bb0a2f97fd90605a44e/246/en-ar#40740
* Pluralize `js.summary.description`
This fixes https://discourse.crowdin.com/translate/f3230e7607a36bb0a2f97fd90605a44e/246/en-ar#40782
* Pluralize `js.summary.description_time_MF`
This fixes https://discourse.crowdin.com/translate/f3230e7607a36bb0a2f97fd90605a44e/246/en-ar#40784
* Use translation to join list of tags
This fixes https://discourse.crowdin.com/translate/f3230e7607a36bb0a2f97fd90605a44e/246/en-ar#43372
* Pluralize `admin_js.admin.groups.manage.membership.automatic_membership_user_count`
This fixes https://discourse.crowdin.com/translate/f3230e7607a36bb0a2f97fd90605a44e/246/en-ar#43720
* Pluralize `js.post.controls.delete_topic_confirm_modal`
This fixes https://discourse.crowdin.com/translate/f3230e7607a36bb0a2f97fd90605a44e/246/en-ar#54804
* Stop concatenating `js.post.last_edited_on`
This fixes https://discourse.crowdin.com/translate/f3230e7607a36bb0a2f97fd90605a44e/246/en-ar#42358
* Stop concatenating `js.post.wiki_last_edited_on`
This fixes https://discourse.crowdin.com/translate/f3230e7607a36bb0a2f97fd90605a44e/246/en-ar#42356
It also fixes a regression because `js.post.wiki_last_edited_on` wasn't used anymore since 2017.
2021-02-02 10:50:04 +01:00
hawm
d96b35b0f5
FIX: display correct reply count for crawler
2020-10-09 11:11:11 -04:00
Michael Brown
d9a02d1336
Revert "Revert "Merge branch 'master' of https://github.com/discourse/discourse ""
...
This reverts commit 20780a1eee
.
* SECURITY: re-adds accidentally reverted commit:
03d26cd6: ensure embed_url contains valid http(s) uri
* when the merge commit e62a85cf
was reverted, git chose the 2660c2e2
parent to land on
instead of the 03d26cd6
parent (which contains security fixes)
2020-05-23 00:56:13 -04:00
Jeff Atwood
20780a1eee
Revert "Merge branch 'master' of https://github.com/discourse/discourse "
...
This reverts commit e62a85cf6f
, reversing
changes made to 2660c2e21d
.
2020-05-22 20:25:56 -07:00
Kris
864fb45ff0
Improve mobile friendliness of crawler view
2020-05-19 00:24:17 -04:00
Dan Ungureanu
141f16eb6b
FIX: Multiple schema.org improvements
...
* Do not show "Uncategorized" category in topics list.
* Use "BreadcrumbList" only if topic is in a category.
* Add tags list as keywords to the first post.
* Add "dateModified" even if it is the same with "datePublished".
* Show "crawler-linkback-list" only if there are links to be shown.
2020-05-11 20:38:49 +03:00
Dan Ungureanu
1019789d1a
FIX: Resolve Schema.org validation issues
2020-05-05 16:57:16 +03:00
Dan Ungureanu
fe51f7a863
FEATURE: More improvements to crawler and old browsers view
...
Related to c85018cdfd
.
2020-04-30 12:07:51 +03:00
Dan Ungureanu
c85018cdfd
Improve support for old browsers ( #9515 )
...
* FEATURE: Improve crawler view
* FIX: Make lazyYT crawler-friendly
* DEV: Rename discourse-internet-explorer to discourse-unsupported-browser
* DEV: Detect more unsupported browsers
Follow-up to 4eebbd2212
.
* FIX: Hide browser update notice in print view
2020-04-29 21:40:21 +03:00
Dan Ungureanu
89bd7ba45f
FIX: Use new tag routes ( #8683 )
...
Commit 1fb7a62
added unambiguous routes for tags. This commit ensures
that the new routes are used.
2020-01-21 19:23:08 +02:00
Saurabh Patel
d4bec7fdfb
use description_text instead of description to show correct sanitized description ( #7420 )
2019-04-24 16:33:58 +10:00
Robin Ward
a8e3ac90a0
FIX: nil
error in list, incorrect count in reviewable pending
2019-04-22 12:18:57 -04:00
Saurabh Patel
3f9ec197e7
FIX: use last_activity_date instead of created_at for crawler view
2019-04-22 11:38:48 -04:00
Saurabh Patel
9b288613ae
DEV: remove span from inside <tr> and move meta info to a td ( #7324 )
2019-04-05 09:32:11 +02:00
Saurabh Patel
4a47ec791f
* FEATURE: change layout of escaped_fragment_ topic page to table one like live discourse ( #7250 )
2019-03-27 21:32:56 +01:00
Joffrey JAFFEUX
096a81158a
FIX: siteNavigationElement was reversed ( #6934 )
2019-01-23 15:47:39 +01:00
Saurabh Patel
a52baf4b28
FEAT: use category logo image as meta image ( #6865 )
2019-01-10 09:33:13 +08:00
Sam
7aef604f7d
regression, if there is not excerpt skip
2018-08-09 15:07:18 +10:00
Sam
3f6ad65aec
FEATURE: include excerpt in HTML view for pinned topics
2018-08-08 11:15:49 +10:00
Joffrey JAFFEUX
d494feaa32
FIX: should not be needed as we have itemprop='url'
2018-07-30 09:31:27 -04:00
Joffrey JAFFEUX
1772b56cda
FIX: minor micro data fixes
2018-06-29 13:41:04 +02:00
Joffrey JAFFEUX
803968147c
FIX: ListItem can’t have itemprop=url and itemprop=item together
2018-06-25 14:12:55 +02:00
Joffrey JAFFEUX
276526e30e
FIX: improves micro data support
2018-06-13 23:20:48 +02:00
Sam
ebdf8d6718
remove uneeded code
2017-10-04 15:05:58 +11:00
Sam
14310d2eee
UX: title in JS must match title on Server
...
Corrects title flashing with incorrect value on front page reloads
2017-10-04 15:04:42 +11:00
Bianca Nenciu
fa69e0dd77
Improved metadata for tags. ( #5067 )
2017-08-28 13:11:34 -04:00
Neil Lalonde
0b41046238
don't force SiteSetting.title into meta title tag
2017-06-12 13:50:50 -04:00
Neil Lalonde
ca20cb9941
FEATURE: subcategories can be discovered by web crawlers on page 1 of the parent category topics list
2017-03-02 15:06:56 -05:00
Neil Lalonde
a5dfcddc6c
FIX: crawler view of paginated content should have link elements in head for next and previous pages
2017-02-07 16:11:12 -05:00
Rafael dos Santos Silva
24227af9e8
Adds some styling for crawler view
2016-11-14 18:32:59 -02:00
Arpit Jalan
a39929d12e
FEATURE: add opengraph and twitter meta tags on every page
2016-08-21 22:08:49 +05:30
Sam Saffron
f369d492b3
FEATURE: stop linking to last post in crawler view
...
This only makes stuff harder for google AND does not even function correctly
2016-07-12 21:11:33 +10:00
Damien Caselli
b90159b11d
FIX: tag topic list header href leading to 404
2016-05-06 11:13:06 +02:00
Neil Lalonde
e5918c7d00
FEATURE: Merge tagging plugin into core
2016-04-27 11:58:53 -04:00
Neil Lalonde
b782a01148
add server_plugin_outlet topic_list_header
2016-04-13 11:49:43 -04:00
Sam
ecbbbbc98c
FIX: not showing content on topics for mobile crawler
2016-03-17 15:09:08 +11:00
Robin Ward
233aa2ab2f
FIX: If we're using the crawler layout, don't skip on mobile
2016-03-16 14:35:58 -04:00
Arpit Jalan
06c11a3235
FIX: do not include word 'Topics' in title of category pages for Googlebot
2015-11-12 12:36:32 +05:30
Sam
9f56381b0b
PERF: Shrink mobile payload, don't render for noscript on mobile
2015-11-09 14:55:17 +11:00
Régis Hanol
37c5909a31
FIX: use the first image in the first post in the topic as opengraph image
...
FEATURE: new 'default_opengraph_image_url' setting
2015-10-15 11:00:47 +02:00
Arpit Jalan
1e6bf67b5b
FIX: show category links if category has sub-categories in nojs view
2015-09-13 01:02:00 +05:30
Arpit Jalan
10c40775e5
FEATURE: add Open Graph tags on category pages
2015-07-30 19:29:56 +05:30
Arpit Jalan
9049f31456
add posts.rss rel alternate
2015-06-10 00:52:11 +05:30