]> BookStack Code Mirror - bookstack/commit
URL Handling: Removed referrer-based redirect handling
authorDan Brown <redacted>
Sun, 10 Dec 2023 12:37:21 +0000 (12:37 +0000)
committerDan Brown <redacted>
Sun, 10 Dec 2023 12:37:21 +0000 (12:37 +0000)
commit45ce7a712684c5c29818f74126cfaa665c87fc9b
treee50544fc7063c2fd8e6cee81abfbef4de59ee469
parent11955e270cc93f061600fce4e50301ba9588cea2
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.
17 files changed:
app/Access/Controllers/ForgotPasswordController.php
app/Access/Controllers/ResetPasswordController.php
app/Access/Controllers/SocialController.php
app/Activity/Controllers/FavouriteController.php
app/Activity/Controllers/WatchController.php
app/Entities/Controllers/ChapterController.php
app/Entities/Controllers/PageController.php
app/Http/Controller.php
app/Users/Controllers/RoleController.php
app/Users/Controllers/UserPreferencesController.php
resources/views/common/dark-mode-toggle.blade.php
resources/views/common/sort.blade.php
resources/views/entities/view-toggle.blade.php
tests/Activity/WatchTest.php
tests/FavouriteTest.php
tests/User/RoleManagementTest.php
tests/User/UserPreferencesTest.php