terminal42 / contao-url-rewrite

Provides a back end module in Contao that allows you to specify url rewrites that are added to the Symfony Route collection
MIT License
15 stars 4 forks source link

Example doesn't work in Contao 4.9.20 #29

Closed stefanschleich closed 2 years ago

stefanschleich commented 3 years ago

I just tried the following example from the docs in a Contao 4.9.20 with the extension version 1.5.0:

Typ: einfach
Pfad-Einschränkung: find/{address}
Antwort-Statuscode: 303 See Other
Antwort-Umleitungs-URL: https://www.google.com/maps?q={address}
---
Resultat: domain.tld/find/Schweiz → https://www.google.com/maps?q=Schweiz

The result is:

domain.tld/find/test → https://www.google.com/maps?q={address}

Same for the news example:

domain.tld/news/test → domain.tld/news/{news}

fritzmg commented 3 years ago

Duplicate of https://github.com/terminal42/contao-url-rewrite/issues/28 I think.

stefanschleich commented 3 years ago

I understood #28 to be a problem with custom made inserttags, but I just used the examples provided with the extension.

Is this a bug or can i solve it on my own somehow?

fritzmg commented 3 years ago

It's a bug.

stefanschleich commented 3 years ago

Thanks. I worked around it by configuring the redirect via the config.yml.

fritzmg commented 2 years ago

This should be fixed in Contao 4.9.22. @stefanschleich can you confirm?

rabauss commented 2 years ago

Should be fixed with https://github.com/contao/contao/pull/3407