neos / redirecthandler

The Neos.RedirectHandler package for Flow
MIT License
4 stars 15 forks source link

URLs with bracket can't be imported #43

Closed jonnitto closed 4 years ago

jonnitto commented 4 years ago

A URL can also have brackets []. But it is not possible to import them, as the systems say the URL is not valid.

!! Source path "persoenliche-beratung/clinic[bonn]-1/clinic[augsburg]-1/topicsMen[body1]-1" does not have a valid format

image

Sebobo commented 4 years ago

As said during the call, you can modify the behaviour by changing the regex of Neos.RedirectHandler.validation.sourceUriPath in and Neos.RedirectHandler.Ui.validation.sourceUriPath. The first one is the php regex and the second on the one for Javascript in the UI.

Sadly they have slight differences...

Sebobo commented 4 years ago

Should be added to the docs. I thought it was in there already.

Sebobo commented 4 years ago

Could you solve it?