diff options
author | diosmosis <benaka@piwik.pro> | 2015-10-18 10:58:56 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-10-27 07:47:26 +0300 |
commit | ad77957c1593d48aa7d727d4e15b580cec095b68 (patch) | |
tree | b1fd41b9ea7a1565fdc50e32f50eaaec6be69344 /config/environment | |
parent | da8f5eee311f5cefeb30bb4b534ecf000f7bce0a (diff) |
Do not replace port URLs for overlay API results so links can be matched in UI tests.
Diffstat (limited to 'config/environment')
-rw-r--r-- | config/environment/ui-test.php | 10 |
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']; |