Dynamic redirection

Hello again.

I need about 400 pages with a new link als redirection.
Forward [teambuilding-firmenevents/:ort] to [firmenevents/:ort].

How can I implement this?
Unfortunately, it didn’t work when I tried.

Many thanks for your help

What’s not working? The :ort part is not being replaced?

Correct, the :ort variable is not adopted in “Redirect To” and the respective page is not loaded

This might not be implemented, unsure if it’s a bug or a feature request now…

This can be worked around by creating a Server Action with a Redirect step to redirect to the intended destination. It’s a bit more complicated for non-technical people.

You would need to check the URL being accessed by inspecting a $_SERVER variable:

Extract everything after “teambuilding-firmenvents/” (the equivalent of :ort) and then use the extracted string to inject in the URL expression of the Redirect step

Sorry if this sounds a bit confusing, I lack the time to explain (and research the exact instructions), but I just wanted to nudge you in the right direction.

Might also be useful (look at the pathinfo variable):

Thank you Apple,

Unfortunately that’s too high for me, I don’t understand.

Do you understand this part?

Can you create a server action and add a step “Redirect”?

You redirect to '/firmenevents/' + $_PARAM.ort

I think I overcomplicated my explanation

I think I understand what you mean.
This is how I tried to implement it:

A route as a server connect with a Redirect.

It just doesn’t work.
The :location variable is not passed on

Auch nicht als ‘/firmenevent/’+$_PARAM.ort

What am I doing wrong

It works!
I just had to clear my browser cache

Thank you very much!!