Bad post url returns archive instead of 404 error #2076
Replies: 2 comments 3 replies
-
This is most likely a regression as the routing has been completed rewritten since that issue was closed. Opened a new issue for it #2078 |
Beta Was this translation helpful? Give feedback.
-
ah thanks for that, I'll watch that issue for updates! I am having a related issue that might be worth looking at as part of this one, but if it's just something unsupported or something I'm doing wrong, let me know that'd be helpful to understand. Basically I am hoping to add pages underneath the archive page, while still supporting the posts serving from that parent archive page. Like, my archive page is /blog, so /blog/post-slug would resolve to the archive page and show the post, as it already does. Now I'd like to have a page like /blog/search where this is a custom SearchPage, routed to a custom SearchPage handler/route, that reads from the query string to do a rudimentary search of posts by title. I have already created the SearchPage model, SearchPage handler, and routed the SearchPage model to the handler. If I create the Search page at the root, like /test-search-page and navigate to that path, I see my custom page for it that I routed. However, if I put that page under the /blog archive page, so that the path is now /blog/test-search-page, that path returns a 404. If I misspell it, like /blog-testing-search-page I see the standard archive page (the issue originally reported in this thread). So the /blog/test-search-page is doing something, but when it's under the /blog path, it breaks. Is this an unsupported operation? thanks again! |
Beta Was this translation helpful? Give feedback.
-
I searched the issues history for this issue, and found this one: #261 which shows closed as done. however on my instance (version 11.1.0) if I go to /blog/non-existant-post-slug I see the regular /blog archive page.
Did I miss a step or is something else wrong here? thanks!
Beta Was this translation helpful? Give feedback.
All reactions