From e81b68212202e04aa3fa0f0dffd7cac8f9b117a1 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Fri, 18 Sep 2026 16:18:39 +0100 Subject: [PATCH] wiki: Fix baseUri for wikibase Fixes: https://github.com/openstreetmap/operations/issues/1327 --- .../wiki/templates/default/mw-ext-Wikibase.inc.php.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cookbooks/wiki/templates/default/mw-ext-Wikibase.inc.php.erb b/cookbooks/wiki/templates/default/mw-ext-Wikibase.inc.php.erb index f0cbf67c0..0d07eaf45 100644 --- a/cookbooks/wiki/templates/default/mw-ext-Wikibase.inc.php.erb +++ b/cookbooks/wiki/templates/default/mw-ext-Wikibase.inc.php.erb @@ -35,7 +35,7 @@ call_user_func( function() { $wgExtraNamespaces[WB_NS_PROPERTY_TALK] = 'Property_talk'; $wgWBRepoSettings['entitySources'] = function ( SettingsArray $settings ) { - global $wgServer; + global $wgCanonicalServer; $entityNamespaces = [ 'item' => WB_NS_ITEM, @@ -49,7 +49,7 @@ call_user_func( function() { $settings->getSetting( 'localEntitySourceName' ) => [ 'entityNamespaces' => $entityNamespaces, 'repoDatabase' => false, - 'baseUri' => $wgServer . '/entity/', + 'baseUri' => $wgCanonicalServer . '/entity/', 'rdfNodeNamespacePrefix' => 'wd', 'rdfPredicateNamespacePrefix' => '', 'interwikiPrefix' => '', @@ -136,7 +136,7 @@ $wgWBClientSettings['repoSiteName'] = 'Data Items'; // Avoid complaints that nobody seems to know the cause off... $wgWBClientSettings['entityUsagePerPageLimit'] = 500; - + // no edit rights for anonymous users $wgGroupPermissions['*']['item-term'] = false; $wgGroupPermissions['*']['item-merge'] = false; -- 2.47.3