Alex Monk has uploaded a new change for review.
https://gerrit.wikimedia.org/r/291349
Change subject: Make VE RB URLs domain-relative
......................................................................
Make VE RB URLs domain-relative
So that on mobile you go to the mobile domain for RB, otherwise the normal
domain.
This is to help clients that don't honor RB's Access-Control-Expose-Headers
cross-origin.
As a side-effect, API requests from mobile users should be sped up slightly by
reusing the existing connection, and avoiding the extra DNS lookup.
Bug: T135171
Change-Id: I825b22058e7e1c536298a4a19e0ff1981045a360
---
M wmf-config/CommonSettings.php
1 file changed, 2 insertions(+), 7 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config
refs/changes/49/291349/1
diff --git a/wmf-config/CommonSettings.php b/wmf-config/CommonSettings.php
index 32df79a..5d5a89f 100644
--- a/wmf-config/CommonSettings.php
+++ b/wmf-config/CommonSettings.php
@@ -2131,13 +2131,8 @@
$wgExtensionFunctions[] = function () {
global $wgServerName, $wmfRealm,
$wgVisualEditorRestbaseURL,
$wgVisualEditorFullRestbaseURL;
- if ( $wmfRealm === 'production' ) {
- $wgVisualEditorRestbaseURL =
"https://$wgServerName/api/rest_v1/page/html/";
- $wgVisualEditorFullRestbaseURL =
"https://$wgServerName/api/rest_";
- } elseif ( $wmfRealm === 'labs' ) {
- $wgVisualEditorRestbaseURL =
"//$wgServerName/api/rest_v1/page/html/";
- $wgVisualEditorFullRestbaseURL =
"//$wgServerName/api/rest_";
- }
+ $wgVisualEditorRestbaseURL = "/api/rest_v1/page/html/";
+ $wgVisualEditorFullRestbaseURL = "/api/rest_";
};
}
--
To view, visit https://gerrit.wikimedia.org/r/291349
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I825b22058e7e1c536298a4a19e0ff1981045a360
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Alex Monk <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits