I am using MediaWiki 1.35. VisualEditor is not showing page content. Instead, all pages are displayed as empty when trying to edit them.
Checking the console I realized that it is trying to access non existing URLs. For example, VisualEditor is trying to access this URL:
https://www.example.org/wiki/rest.php/v1/page/html/Main_Page?redirect=false&stash=true
which returns an error 404 with "The requested relative path (/v1/page/html/Main_Page) did not match any known handler".
However, with some guessing I found that at
https://www.example.org/wiki/rest.php/v1/page/Main_Page?redirect=false&stash=true
the page content would be returned.
But this URL is not being called. Seems like the configuration is somehow wrong.
This is set in LocalSettings.php:
# The wiki is at in a subfolder called wiki.
$wgScriptPath = '/wiki';
wfLoadExtension( 'VisualEditor' );
$wgVisualEditorFullRestbaseURL = $wgServer . $wgScriptPath . '/rest.php/';
$wgVirtualRestConfig['modules']['parsoid'] = array(
'url' => $wgServer . $wgScriptPath . '/rest.php',
);
$wgVisualEditorRestbaseURL = $wgServer . $wgScriptPath . '/rest.php/v1/page/html/';What needs to be changed to fix that?