Merge pull request #6119 from Spoons/feat_referer_to_session_redirect

Fix: Use Session instead of Referrer for Redirection
This commit is contained in:
Nicolas Lœuillet
2023-08-21 10:32:03 +02:00
committed by GitHub
4 changed files with 13 additions and 12 deletions

View File

@ -124,7 +124,7 @@ class TagControllerTest extends WallabagCoreTestCase
// We make a first request to set an history and test redirection after tag deletion
$client->request('GET', '/view/' . $entry->getId());
$entryUri = $client->getRequest()->getUri();
$entryUri = $client->getRequest()->getRequestUri();
$client->request('GET', '/remove-tag/' . $entry->getId() . '/' . $tag->getId());
$this->assertSame(302, $client->getResponse()->getStatusCode());