We are noticing that duplicate pages have started being indexed by Google, for example:
curl -I -L http://mydiscourse.com/t/this-is-a-test-topic/1 => HTTP/1.1 200 OK
http://mydiscourse.com/t/this-is-a-test-topic/1?page=5000000 => HTTP/1.1 200 OK
Ideally the latter (non-existent) URL should 404 or redirect, it seems the current behaviour is to render the correct (former) URL, but with a status 200 (unless I’m mistaken).
This is running v0.9.9.9, though I notice the same behaviour is present on
meta.discourse.org which I assume is running a newer release.
Any help appreciated; apologies if there is an obvious solution.