We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d041bf7 + 1b23264 commit 8924d17Copy full SHA for 8924d17
static/shared/js/documentation.js
@@ -11,7 +11,8 @@ $(function() {
11
if(docUrl){
12
$('#js-sidebar .js-topic a').each(function(){
13
var url = $(this).attr('href').toString()
14
- if(url.indexOf(docUrl[1]) >= 0 && url.length == docUrl[1].length){
+ var cleanDocUrl = docUrl[1].split('#')[0]
15
+ if(url.indexOf(cleanDocUrl) >= 0 && url.length == cleanDocUrl.length){
16
$(this).parent('li').addClass('disable')
17
var parentTopic = $(this).parentsUntil('div.sidebar-module > ul').last()
18
parentTopic.addClass('js-current')
0 commit comments