Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authordiosmosis <benaka@piwik.pro>2015-10-18 10:58:56 +0300
committerdiosmosis <benaka@piwik.pro>2015-10-27 07:47:26 +0300
commitad77957c1593d48aa7d727d4e15b580cec095b68 (patch)
treeb1fd41b9ea7a1565fdc50e32f50eaaec6be69344 /config
parentda8f5eee311f5cefeb30bb4b534ecf000f7bce0a (diff)
Do not replace port URLs for overlay API results so links can be matched in UI tests.
Diffstat (limited to 'config')
-rw-r--r--config/environment/ui-test.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/config/environment/ui-test.php b/config/environment/ui-test.php
index aff9457a53..4d68a6f9ba 100644
--- a/config/environment/ui-test.php
+++ b/config/environment/ui-test.php
@@ -10,6 +10,16 @@ return array(
'observers.global' => \DI\add(array(
array('Request.dispatch.end', function (&$result) {
+ $request = $_GET + $_POST;
+
+ // Overlay needs the full URLs in order to find the links in the embedded page (otherwise the %
+ // tooltips don't show up)
+ if (!empty($request['method'])
+ && $request['method'] == 'Overlay.getFollowingPages'
+ ) {
+ return;
+ }
+
$config = \Piwik\Config::getInstance();
$host = $config->tests['http_host'];
$port = $config->tests['port'];