Confirmation URL broken, if absolute URL or alias with leading slash is used

Created on 16 July 2020, over 4 years ago
Updated 10 September 2023, over 1 year ago

If you use an alias in the "On confirmation URL" field on the settings page.
The click on the confirmation URL breaks with an error message:

Auf der Website ist ein unvorhergesehener Fehler aufgetreten. Bitte versuchen Sie es spΓ€ter nochmal.

InvalidArgumentException: Cannot redirect to an empty URL. in Symfony\Component\HttpFoundation\RedirectResponse->setTargetUrl() (line 86 of /Users/username/Sites/project/vendor/symfony/http-foundation/RedirectResponse.php).

The confirmation is actually triggered and good, but the redirect to the page breaks.

It works ok if you use an alias without leading slash or a system path. In my case "Skip response form" is activated, but don't know if this matters.

πŸ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany webcultist Karslruhe

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024