Simple page redirect

Is it possible to do a simple page redirect based on the content of a twig tag or header?

E.g. If I have the page:

On that page, I’d like to put a tag to redirect that to:

I was expecting a header tag - redirect: /some-page or a twig tag like this:

{% redirect '/some-page' %}

But can’t find anything. Is it possible?


Does a configuration based redirect not work for you?

Route Aliases and Redirects

Perfect thank you! I did search the docs but it didn’t show up. I just tested the search again and it did show up ;(