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

Comments

JayeshSolanki’s picture

Status: Active » Needs review
StatusFileSize
new3.02 KB

Attached a patch which fixes the issues. The patch uses 'html_head' instead of a separate file to attach the close window script.

damienmckenna’s picture

You 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>.

lammensj’s picture

StatusFileSize
new2.48 KB

Rerolled the patch against the stable version.

dylan donkersgoed’s picture

StatusFileSize
new2.68 KB
new963 bytes

Re-rolled this again for fe7cbd68bdf036cc2850ac8a06e736b1022f3383.

lammensj’s picture

StatusFileSize
new2.3 KB
new1.93 KB

Use of the "!"-placeholder in TranslatableMarkup is forbidden.

chris matthews’s picture

Status: Needs review » Reviewed & tested by the community

The 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.

Applied patch src/Controller/DisqusController.php cleanly.
Applied patch src/DisqusCommentManager.php cleanly.

  • lammensj authored 028181f on 8.x-1.x
    Issue #2482091 by lammensj, Dylan Donkersgoed, JayeshSolanki: SSO login...
gaurav.kapoor’s picture

Pushed as well as fixed CS. Thanks for working on this.

gaurav.kapoor’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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