When the administrative overlay is enabled, the traversal links do not function.
Since they are administrative links, they are captured by the overlay, where they naturally run into all kinds of problems.
They don't make sense to open in the overlay anyway... so we can simply add the class 'overlay-exclude' to each menu item.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | domain_traversal-n2837903-1-no_overlay.patch | 447 bytes | mw4ll4c3 |
Comments
Comment #2
mw4ll4c3 commentedComment #3
mw4ll4c3 commentedComment #5
spadxiii commentedUnfortunately, only adding the 'overlay-exclude' class to the links did not work for me.
Since drupal 7.50, there is an X-Frame-Options header, so javascript can't redirect the parent, outside the overlay-iframe.
My solution: break out of the overlay with a redirect to the domain-traversal link and let that redirect to the other domain.
Comment #6
mw4ll4c3 commentedThank you for the quick response and commit!
So for now, should we just add 'overlay-exclude' to the admin/domain-traversal parent link, too? I will probably need to build that version anyway, when I do core updates... will post that follow-up patch if it will be useful to you or others.
Comment #7
spadxiii commentedI think the commit fixed the issue in a different way: it breaks out of the overlay-iframe and tries to traverse to the other domain again.
But it might be better to just disable overlay completely :)