public function getDashboardReturnToUrl() {
		$p = [
			'returnto' => $_SERVER['SCRIPT_NAME'],
			'returntoquery' => http_build_query( $_GET ),
		];
		return rtrim( $this->dashboardHome, '/' )
			. '/?'
			. http_build_query( $p )
			. '#tab-settingsform';
	}
public function getDashboardReturnToUrl() {
		$p = [
			'returnto' => $_SERVER['SCRIPT_NAME'],
			'returntoquery' => http_build_query( $_GET ),
		];
		return rtrim( $this->dashboardHome, '/' )
			. '/?'
			. http_build_query( $p )
			. '#tab-settingsform';
	}
public function getDashboardReturnToUrl ( ) { $ p = [ 'returnto' => $ _SERVER [ 'SCRIPT_NAME' ] , 'returntoquery' => http_build_query ( $ _GET ) , ] ; return rtrim ( $ this -> dashboardHome , '/' ) . '/?' . http_build_query ( $ p ) . '#tab-settingsform' ; }
Build a permalink to the dashboard with a returnto query
to return to the current page. To be used in other tools.

Example:

Location: https://tools.wmflabs.org/example/foo.php?bar=baz
HTML:
'<p>Change the settings <a href="' . $I18N->getDashboardReturnToUrl() . '">here</a>';

@return string URL
Build a permalink to the dashboard with a returnto query to return to the current page . To be used in other tools .