I'm trying to create a redirect hook so that when there is a specific value i in the database the link is redirected to another dynamic page.
I have a data field called template.
If the value is 1, I want the page to be directed to a certain page.
The same would happen for value 2 going to another page
and value 3 going to yet another page.
I've been reading the "wix router" part of your site and tried to start from examples present there but I am not managing to make it work. The part that I find difficult is how to instruct the hook to fetch the data in the template field.