greenpeace / planet4

Built on top of Wordpress tech, Greenpeace Planet 4 powers digital platforms to engage with millions and win campaigns around the world.
https://planet4.greenpeace.org
Creative Commons Attribution Share Alike 4.0 International
66 stars 27 forks source link

PLANET-5215 Allow customization of tag page redirect handling #46

Closed stduerre closed 4 years ago

stduerre commented 4 years ago

Currently, when a tag page is loaded, the master theme checks if a "redirect page" is defined. If there is one, it fetches it's content for display instead of auto generating a tag page.

I'd like to have the ability to change this behavior in child themes/plugins to actually redirect to the URL of the redirect page instead of generating the output right away.

A possible solution would be to add an action hook before the output is generated.

comzeradd commented 4 years ago

Thanks for the contribution. Yes, that make sense, so we can preserve the default behavior but give the ability for NROs to override it