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.

Command icon 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

mwynne created an issue. See original summary.

mwynne’s picture

Title: Allow redirect on declined to target external URL » Allow "redirect on declined" to target external URL
kul.pratap’s picture

Assigned: Unassigned » kul.pratap

Working on it.

kul.pratap’s picture

Assigned: kul.pratap » Unassigned
Status: Active » Needs review

This 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

mwynne’s picture

That patch works for me as expected, thank you!

mwynne’s picture

Status: Needs review » Reviewed & tested by the community

  • kallado committed 7ddf0f7b on 1.0.x authored by kul.pratap
    Issue #3541593: Allow external URLs in 'Decline URL' field for Consent...
kallado’s picture

kallado’s picture

Status: Reviewed & tested by the community » Fixed
kallado’s picture

Avaliable in 1.0.6 thanks guys

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.