Would it be possible to configure the search404 "Jump directly to the first search result" feature to only happen if the search query contains certain words?
For instance,
1. website.com/2010/14/best-blog-post (does not exist)
2. website.com/best-blog-post (does not exist either)
I would want any paths that start with YYYY/MM (regex) to jump directly to the first match ("Jump directly to the first search result" option), but have everything else return a list of matches, as if I hadn't checked the option, "Jump directly to the first search result" in the search404 configuration.
Maybe there is some custom PHP that will conditionally trigger this option, but otherwise respect the default settings?
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | conditionally_jump-2318213-2.patch | 2.55 KB | arjun_sreekumar |
Comments
Comment #1
arjun_sreekumar commentedComment #2
arjun_sreekumar commentedComment #3
anish.a commentedLooks fine.
Comment #5
anish.a commentedComment #7
amaisano commentedWow, thank you!
Comment #8
anish_zyxware commented