Fix topic subscriptions button

Follow-up to a3f665e816.

Change-Id: I4df324bb6b60a0a840ddfe483aa10143e218bdf8
This commit is contained in:
Bartosz Dziewoński 2021-04-22 18:18:08 +02:00
parent eae0c1e6e1
commit 534f907d33

View file

@ -243,7 +243,7 @@ function initTopicSubscriptions( $container ) {
api = getApi(),
subscribe = element.classList.contains( 'oo-ui-icon-star' ),
commentName = this.getAttribute( 'data-mw-comment-name' ),
heading = $( this ).closest( 'header' ).find( 'h2' )[ 0 ],
heading = $( this ).closest( '.ext-discussiontools-section' )[ 0 ],
section = utils.getHeadlineNodeAndOffset( heading ).node.id,
title = mw.config.get( 'wgRelevantPageName' ) + '#' + section;