Fix going to/loading comments/responses on non-wall pages
authorMatthias Schmidt <gravatronics@live.com>
Tue, 27 Jun 2017 18:31:30 +0000 (20:31 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Tue, 27 Jun 2017 18:31:30 +0000 (20:31 +0200)
See #2223

wcfsetup/install/files/js/WCF.Comment.js

index 6d13f0103366bd1a1b208892cd61fb9239de9d36..39779b177450ff3005542901173be77710c187c8 100644 (file)
@@ -165,7 +165,7 @@ WCF.Comment.Handler = Class.extend({
                });
                
                var hash = window.location.hash;
-               if (hash.match(/^(?:[^\/]+\/)?comment(\d+)(?:\/response(\d+))?/)) {
+               if (hash.match(/^#(?:[^\/]+\/)?comment(\d+)(?:\/response(\d+))?/)) {
                        var comment = elById('comment' + RegExp.$1);
                        if (comment) {
                                var response;