diff --git a/src/Gist/Resources/views/base.html.twig b/src/Gist/Resources/views/base.html.twig index 154b154..651407e 100644 --- a/src/Gist/Resources/views/base.html.twig +++ b/src/Gist/Resources/views/base.html.twig @@ -44,10 +44,10 @@ {% block langs %} diff --git a/web/app/js/app.js b/web/app/js/app.js index e9fc483..3922dcd 100644 --- a/web/app/js/app.js +++ b/web/app/js/app.js @@ -127,6 +127,10 @@ var viewerEvents = function() { SyntaxHighlighter.all(); to = ' data-key="#key=' + key + '" '; + + $('.lang').each(function() { + $(this).attr('href', $(this).attr('href') + '#key=' + key); + }); } if ($embedInput.length) {