Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
SSO login window doesn't close itself, instead gives a page not found error for /disqus/closewindow.
Proposed resolution
Use _controller instead of _content in disqus.routing.yml. Change record: https://www.drupal.org/node/2378809
'js' can no longer be used in '#attached'. Use library instead or find an alternate solution for using 'window.close()'.
Remaining tasks
None
User interface changes
None
API changes
None
Comment | File | Size | Author |
---|---|---|---|
#5 | interdiff-4-5.txt | 1.93 KB | lammensj |
#5 | 2482091-5.patch | 2.3 KB | lammensj |
Comments
Comment #1
JayeshSolanki CreditAttribution: JayeshSolanki commentedAttached a patch which fixes the issues. The patch uses 'html_head' instead of a separate file to attach the close window script.
Comment #2
DamienMcKennaYou really shouldn't use "click here" as the text on a link, you'd be better off doing something like this:
Please <a href="!clickhere">close this window</a>.
Comment #3
lammensj CreditAttribution: lammensj at iO commentedRerolled the patch against the stable version.
Comment #4
Dylan Donkersgoed CreditAttribution: Dylan Donkersgoed at Northern Commerce commentedRe-rolled this again for fe7cbd68bdf036cc2850ac8a06e736b1022f3383.
Comment #5
lammensj CreditAttribution: lammensj at iO commentedUse of the "!"-placeholder in TranslatableMarkup is forbidden.
Comment #6
Chris Matthews CreditAttribution: Chris Matthews commentedThe 2 year old patch in #5 to DisqusController.php and DisqusCommentManager.php applied cleanly to the latest disqus 8.x-1.x-dev and now looks RTBC worthy to me.
Comment #8
gaurav.kapoor CreditAttribution: gaurav.kapoor at Axelerant for Drupal India Association commentedPushed as well as fixed CS. Thanks for working on this.
Comment #9
gaurav.kapoor CreditAttribution: gaurav.kapoor at Axelerant for Drupal India Association commented