Force 404 for incorrect blog slug

Hey everyone, how do I force a 404 page when someone goes to[slug] and input an incorrect slug?

1 Like

Hi, you should be able to insert a Side Effect component, which just runs an interaction on load. This interaction can just have one step which is to navigate to your 404 page. The steps should conditionally run only when the query result you’re interested in has an error. Let me know if that makes sense!