You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was manually poking around URLs on different Known sites to compare /content/likes/, even though likes were not advertised in the Filter Content dropdown. I didn't find the (non-existent) likes, but the default stream displayed instead.
What I expected
If the content type doesn't exist, it should render a 404 (or possible a 302 redirect to the default stream).
Some other notes:
This appears to happen with any arbitrary [type] in the path, e.g. /content/florps/
The text was updated successfully, but these errors were encountered:
That's /Idno/Pages/Homepage.php that's responsible for this. Little tricky to do a straight 404 as this page can accept multiple types, so it'd have to 404 only if all those types are unsupported - which is different from supported, but not found.
Arguably both these cases could 404, but I'd look at best practice for guidance on this.
I don't known Known internals, but yes ideally it should check if the type is supported / exists and return 404 when it doesn't. I think a temporary redirect is also OK, but 404 is preferred since it's more accurate. Search engines can penalize sites that deliver the same content on multiple URLs. This is certainly a lower-priority thing since I was manually assembling these URLs, not finding them linked anywhere.
While trying to do this:
I was manually poking around URLs on different Known sites to compare
/content/likes/
, even though likes were not advertised in the Filter Content dropdown. I didn't find the (non-existent) likes, but the default stream displayed instead.What I expected
If the content type doesn't exist, it should render a 404 (or possible a 302 redirect to the default stream).
Some other notes:
This appears to happen with any arbitrary
[type]
in the path, e.g./content/florps/
The text was updated successfully, but these errors were encountered: