Pull-request: #16153 Fixes: #16102 Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
commit
8e74c29baf
@ -824,7 +824,7 @@ class FormDisplay
|
||||
return MySQLDocumentation::getDocumentationLink(
|
||||
'config',
|
||||
'cfg_' . $this->_getOptName($path),
|
||||
Sanitize::isSetup() ? '../' : ''
|
||||
Sanitize::isSetup() ? '../' : './'
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@ -82,7 +82,7 @@ class MySQLDocumentation
|
||||
*
|
||||
* @return string URL
|
||||
*/
|
||||
public static function getDocumentationLink($page, $anchor = '', string $pathPrefix = ''): string
|
||||
public static function getDocumentationLink($page, $anchor = '', string $pathPrefix = './'): string
|
||||
{
|
||||
/* Construct base URL */
|
||||
$url = $page . '.html';
|
||||
|
||||
@ -153,7 +153,7 @@ class Sanitize
|
||||
$page = 'setup';
|
||||
}
|
||||
}
|
||||
$link = MySQLDocumentation::getDocumentationLink($page, $anchor, self::isSetup() ? '../' : '');
|
||||
$link = MySQLDocumentation::getDocumentationLink($page, $anchor, self::isSetup() ? '../' : './');
|
||||
|
||||
return '<a href="' . $link . '" target="documentation">';
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user