Changing form destinations strips query and fragment

Created on 13 April 2015, over 9 years ago
Updated 26 November 2024, 27 days ago

My site has a form which would otherwise go to http://example.com/somepath?destination=node%2F212345 (i.e., that's the $form[#action] variable).

Secure pages alters the form destination to switch it to https β€” but it also strips the query string from that destination. The resulting $form[#action] variable is https://example.com/somepath

It would also strip the "fragment" (what's after a # sign). So http://example.com/somepath#section1 would be replaced by https://example.com/somepath.

πŸ› Bug report
Status

Closed: outdated

Version

2.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States BerkeleyJon

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.

  • πŸ‡ΊπŸ‡¦Ukraine AstonVictor

    I'm closing it because the issue was created a long time ago without any further steps.

    if you still need it then raise a new one.
    thanks

Production build 0.71.5 2024