-
Notifications
You must be signed in to change notification settings - Fork 151
-
Using the plugin Redirection we can easily define redirects from a source URL to a target URL in WP admin. But this doesn't seem to have any effect since it's the frontend that handles routing of the request. What is the suggested way of handling redirects from the frontend side?
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 2 comments 1 reply
-
Did you find the solution to this problem @traed?
Beta Was this translation helpful? Give feedback.
All reactions
-
We ended up using getStaticProps
(or getServerSideProps
) in [...wordPressNode].tsx
to catch any 404, then get the redirect items from GQL, check if there's matching one and if yes, redirect. I would've loved to have this built in to faust though.
Beta Was this translation helpful? Give feedback.
All reactions
-
Thanks @traed !
Beta Was this translation helpful? Give feedback.