Title structure for SEO (when sorting via Latest button)


(Sunny) #1

Upon clicking “Latest” in a category view, I am seeing that discourse adds “/l/latest” to the page URL.
However the canonical points to the base category URL.

Google seems to be indexing both for us.

There could be two reasons for this

a) Google thinks that the content on the page changed and hence disregards the canonical tag

b) Google gives a higher signal to static looking urls (since we don’t use # / or ? alone to sort the page)

Anyone has ideas on how to deal with this?


(Jeff Atwood) #2

I do not see a problem in your screenshot.


(Cee Kay) #3

As @codinghorror said. We don’t see a problem here. This typically happens when a content exists in two pages of the website.

In wordpress, this happens when you post something in a category and doesn’t post anything else for a long period of time.


(Sunny) #4

Google isn’t respecting canonical tag on Discourse, that is a problem.

@EducatorWaji - Not the same case. WP category pages exist as a separate page, in this case we are sorting a list of items on the same page. Google allows either using URL parameters in search console to indicate to Google about the behaviour of this parameters (Categorize parameters with the URL Parameters tool - Search Console Help) and as an alternative you can use canonical.

Sorting is covered under this. But in all examples that Google gives, a ? tag is used at the end of the original URL. Hence my original hypothesis.