Since updating from 4.x-beta1 to 4.x-dev, when I submit a webform that has a "Custom URL" for the redirect, instead of getting redirected to a url that looks like this:
mysite.com/target-page
the url has an extra unnecessary slash in it like this:
mysite.com//target-page
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | webform_leading_slash_redirect-2246597.patch | 483 bytes | quicksketch |
Comments
Comment #1
quicksketchCould you provide an example of the URL you're entering into the Custom URL redirect? Is it a full URL or just a relative path?
Comment #2
nodecode commentedRelative like this: target-page
Comment #3
quicksketchThanks, on my localhost I had been working with clean URLs turned off, so I wasn't seeing this problem. This was a side-effect of the better token supported added in #1244072: Use of tokens in external URL redirect locations not allowed in some cases and not URL Encoded. This patch corrects the problem, always returning an absolute URL, which then gets trimmed down to convert it to a relative URL in webform_client_form_submit().
Comment #5
fenstratNeeds porting to 8.x-4.x.
Comment #6
fenstratCommitted and pushed 2e0f9d9 to 8.x-4.x. Thanks!