diff --git a/app/classes/Transvision/ShowResults.php b/app/classes/Transvision/ShowResults.php index f245751d..b72ec885 100644 --- a/app/classes/Transvision/ShowResults.php +++ b/app/classes/Transvision/ShowResults.php @@ -373,7 +373,7 @@ public static function getEditLink($tool, $repo, $key, $text, $locale) } } - $edit_link = "https://pontoon.mozilla.org/{$locale}/{$project_name}/{$resource_path}?search={$search_key}"; + $edit_link = "https://pontoon.mozilla.org/{$locale}/{$project_name}/{$resource_path}?search_identifiers=true&search_translations_only=true&search={$search_key}"; return " <edit in {$tool_name}>"; } diff --git a/tests/units/Transvision/ShowResults.php b/tests/units/Transvision/ShowResults.php index 37985eec..9c87b4f6 100644 --- a/tests/units/Transvision/ShowResults.php +++ b/tests/units/Transvision/ShowResults.php @@ -458,7 +458,7 @@ public function getEditLinkDP() 'browser/chrome/browser/browser.properties:webextPerms.hostDescription.allUrls', 'test', 'fr', - " <edit in Pontoon>", + " <edit in Pontoon>", ], [ 'pontoon', @@ -466,7 +466,7 @@ public function getEditLinkDP() 'calendar/chrome/calendar/calendar.dtd:calendar.calendar.label', 'test', 'fr', - " <edit in Pontoon>", + " <edit in Pontoon>", ], [ 'pontoon', @@ -474,7 +474,7 @@ public function getEditLinkDP() 'chat/commands.properties:dnd', 'test', 'fr', - " <edit in Pontoon>", + " <edit in Pontoon>", ], [ 'pontoon', @@ -482,7 +482,7 @@ public function getEditLinkDP() 'browser/browser/preferences/main.ftl:default-content-process-count.label', 'test', 'fr', - " <edit in Pontoon>", + " <edit in Pontoon>", ], [ 'pontoon', @@ -498,7 +498,7 @@ public function getEditLinkDP() 'mail/chrome/messenger/addressbook/abContactsPanel.dtd:ccButton.label', 'test', 'de', - " <edit in Pontoon>", + " <edit in Pontoon>", ], [ 'pontoon', @@ -506,7 +506,7 @@ public function getEditLinkDP() 'suite/chrome/browser/taskbar.properties:taskbar.tasks.composeMessage.description', 'test', 'it', - " <edit in Pontoon>", + " <edit in Pontoon>", ], [ 'pontoon', @@ -514,7 +514,7 @@ public function getEditLinkDP() 'mozilla_org/en/banners/firefox-mobile.ftl:banner-firefox-mobile-get-android-title', 'test', 'it', - " <edit in Pontoon>", + " <edit in Pontoon>", ], [ 'pontoon', @@ -522,7 +522,7 @@ public function getEditLinkDP() 'android_l10n/mozilla-mobile/fenix/app/src/main/res/values/strings.xml:preference_experiments', 'test', 'it', - " <edit in Pontoon>", + " <edit in Pontoon>", ], [ 'pontoon', @@ -530,7 +530,7 @@ public function getEditLinkDP() 'firefox_ios/firefox-ios.xliff:4e0bc9d4', 'test', 'it', - " <edit in Pontoon>", + " <edit in Pontoon>", ], [ 'pontoon', @@ -555,7 +555,7 @@ public function getEditLinkDP() 'firefox_ios/firefox-ios.xliff:4e0bc9d4', '%(test)', 'it', - " <edit in Pontoon>", + " <edit in Pontoon>", ], // Test unknown tool [