Problem/Motivation
I would like to be able to enter an external URL in the "link URL if declined" field so that visitors who do not accept the terms of the pop up are directed to google, or whatever site I choose to enter.
Currently, placing an external URL in that field results in a visit being directed to the site's base URL with that external URL appended.
Issue fork consent_popup-3541593
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
mwynne commentedComment #3
kul.pratap commentedWorking on it.
Comment #5
kul.pratap commentedThis MR fixes the handling of the decline URL.
Right now, the block always assumes the value is an internal path, which breaks when you try to use a full external URL. The change makes it detect http:// or https:// and use the link as-is, while keeping the current behavior for internal paths.
Please review.
Thanks
Comment #6
mwynne commentedThat patch works for me as expected, thank you!
Comment #7
mwynne commentedComment #9
kallado commentedComment #10
kallado commentedComment #11
kallado commentedAvaliable in 1.0.6 thanks guys