Can you get a {redirect=”“} without using no_results to work at all? Try one outside the Channel Entries tag and see if it works perhaps.
It works when I reference a specific channel outside and inside the entries tag but still will not redirect to the index.
Next up you do have this {if no_results} conditional placed within the Channel Entries tag don’t you? If not then it will need to be in there in order for this to work.
Yes.
After that, do you have any fields being spat out between the Channel Entries Tag Pair so that you can see if you are indeed getting any results or not?
It’s definitely not returning any results.
The point of this is that I have a custom field with each entry called “suspend_entry” which I use to control author entries (if they break formatting, etc.) so if an entry is suspended (search:suspend_entry=“No” in the channel entries tag) but a user still accesses the articles/detail page I want to redirect them to the index.
I’m thinking it could have something to do with how I have my .htaccess setup as I have some funky things in there for custom URL functionality for users.
I guess it’s not a big deal if I can’t get the EE redirect to work, I can just throw a little PHP redirect statement in the conditional but it is a weird problem.