The JS timer for automatic redirection does not work unless very specific markup is added to the extlink-extra-leaving.tpl.php file. This seems odd, given that one may want redirection without such markup. Redirection should work regardless of what markup in contained in the modal.

Comments

grasmash’s picture

Status: Active » Needs review
StatusFileSize
new6.2 KB

This file fixes the issue, and contains a few changes that bring the module closer to Drupal coding standards (whitespace and syntax changes).

grasmash’s picture

StatusFileSize
new2.39 KB

Removing some of the Drupal Standards fixes, as it makes it more difficult to apply to patch to the stable release.

justindodge’s picture

Thanks for the patch grasmash! The idea seems like an improvement. Unfortunately I think this breaks the timer functionality when using the intermediate page because the code doesn't know where to get the external_url from.

This was one small advantage to relying on 'div.extlink-extra-go-action a', but in this model I think we could grab the value from the cookie and achieve the same thing.

Would it be possible for you to re-roll it to that effect?

justindodge’s picture

Since I noticed you on the other issue, thought I'd poke on this and see if you were interested in following up on my comment while extlink_extra code may still be up on your screen :)

grasmash’s picture

StatusFileSize
new2.56 KB

I've incorporated your suggestion.

  • justindodge committed 63e1c83 on 7.x-1.x authored by grasmash
    Issue #2248159 by grasmash: Redirection does not work without specific...
justindodge’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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