Santhosh has uploaded a new change for review.
https://gerrit.wikimedia.org/r/182351
Change subject: Correct the construction of targetURL while saving
......................................................................
Correct the construction of targetURL while saving
This is hard coded to User namespace now, but will soon change to
a configurable way
Bug: T78136
Change-Id: I01fab0b4a63c30f0a630e6781aea5919e164f472
---
M api/ApiContentTranslationPublish.php
1 file changed, 3 insertions(+), 1 deletion(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContentTranslation
refs/changes/51/182351/1
diff --git a/api/ApiContentTranslationPublish.php
b/api/ApiContentTranslationPublish.php
index 2fab165..56b8992 100644
--- a/api/ApiContentTranslationPublish.php
+++ b/api/ApiContentTranslationPublish.php
@@ -183,7 +183,9 @@
$params['from'], $params['sourcetitle']
),
'targetURL' =>
ContentTranslation\SiteMapper::getPageURL(
- $params['to'], $params['title']
+ $params['to'],
+ // TODO: Construction of this URL should be
configurable
+ 'User:' . $this->getUser()->getName() . '/' .
$params['title']
),
'status' => $params['status'],
'progress' => $params['progress'],
--
To view, visit https://gerrit.wikimedia.org/r/182351
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I01fab0b4a63c30f0a630e6781aea5919e164f472
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: Santhosh <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits