$form .= Xml::openElement( 'form', [
'method' => 'get',
- 'action' => $this->getPageTitle()->getLocalURL(),
+ 'action' => wfScript(),
'id' => 'mw-watchlist-form'
] );
+ $form .= Html::hidden( 'title', $this->getPageTitle()->getPrefixedText() );
$form .= Xml::fieldset(
$this->msg( 'watchlist-options' )->text(),
false,