summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/Article.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/Article.js b/js/Article.js
index e7946776e..1e6488184 100644
--- a/js/Article.js
+++ b/js/Article.js
@@ -133,9 +133,11 @@ const Article = {
openInNewWindow: function (id) {
const w = window.open("");
+ /* global __csrf_token */
+
if (w) {
w.opener = null;
- w.location = "backend.php?op=article&method=redirect&id=" + id;
+ w.location = "backend.php?op=article&method=redirect&id=" + id + "&csrf_token=" + __csrf_token;
Headlines.toggleUnread(id, 0);
}