mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-30 04:23:11 +03:00
URL Handling: Removed referrer-based redirect handling
Swapped back handling to instead be pre-determined instead of being based upon session/referrer which would cause inconsistent results when referrer data was not available (redirect to app-loaded images/files). To support, this adds a mechansism to provide a URL through request data. Also cleaned up some imports in code while making changes. Closes #4656.
This commit is contained in:
@ -63,8 +63,7 @@ class WatchTest extends TestCase
|
||||
$editor = $this->users->editor();
|
||||
$book = $this->entities->book();
|
||||
|
||||
$this->actingAs($editor)->get($book->getUrl());
|
||||
$resp = $this->put('/watching/update', [
|
||||
$resp = $this->actingAs($editor)->put('/watching/update', [
|
||||
'type' => $book->getMorphClass(),
|
||||
'id' => $book->id,
|
||||
'level' => 'comments'
|
||||
|
Reference in New Issue
Block a user