I would like to create virtual redirector for affiliate links.
In site settings I have field that create path for links (for ex. ‘out’ or ‘go’ or ‘link’) and inside review blueprint i have two fields affiliate_link and terms_link.
In templates I’m create affiliate links in this way: <?= $site->url() ?>/<?= $site->affiliate_redirect_link_folder() ?>/<?= $review->uid() ?>
And have template redirect.php that I would like to made dynamic…
Is it possible?
I don’t know, because I don’t understand at all what you are trying to achieve. How does the redirect.php template fit into what you explain before. What sort of fields are these fields that you describe and what sort of content do they contain?
Review blueprint have fields
But also review have many other fields
So the idea was not to create different Blueprint Links and attach them to Review
But create some virtual router that will catch slug from Site blueprint and when full url will be like this Somesite.com/(site field slug)/(review_link)
Redirect to page that have template Redirect
Or even use virtual route without Redirect template.
I need to to create ability made redirection to external site by parsing url link that uses
Site field as slug and review fields as the mask that will give me information where I need to do redirect