Fixes #356
* adding a link should return added link's hash * allow redirection relative urls in generateLocation
This commit is contained in:
parent
38bedfbbcd
commit
d01c234235
3 changed files with 15 additions and 8 deletions
tests
|
@ -118,6 +118,8 @@ class UtilsTest extends PHPUnit_Framework_TestCase
|
|||
$this->assertEquals($ref, generateLocation($ref, 'localhost'));
|
||||
$ref = 'http://localhost:8080/?test';
|
||||
$this->assertEquals($ref, generateLocation($ref, 'localhost:8080'));
|
||||
$ref = '?localreferer#hash';
|
||||
$this->assertEquals($ref, generateLocation($ref, 'localhost:8080'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue