From a967fce6c78f2600bc8fd2bbb0bcd3737d279f93 Mon Sep 17 00:00:00 2001 From: staurand Date: Wed, 17 Jun 2015 11:48:31 +0200 Subject: [PATCH] Added pipe to escaped symbols of jQuery selector Pipe symbol needs to be escaped in jQuery selector. This symbol is added when multiple methods are allowed for a route. e.g /api/doc#get|post--... --- Resources/views/layout.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/views/layout.html.twig b/Resources/views/layout.html.twig index 978662f..dd95d95 100644 --- a/Resources/views/layout.html.twig +++ b/Resources/views/layout.html.twig @@ -86,7 +86,7 @@ }; $(window).load(function() { - var id = getHash().substr(1).replace( /([:\.\[\]\{\}])/g, "\\$1"); + var id = getHash().substr(1).replace( /([:\.\[\]\{\}|])/g, "\\$1"); var elem = $('#' + id); if (elem.length) { setTimeout(function() {