Skip to content

Commit 4c00d7c

Browse files
committed
fix: corrected redirect if user is not logged in
1 parent 702a5e7 commit 4c00d7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

phpmyfaq/src/phpMyFAQ/Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ private function handleRequest(
143143
status: Response::HTTP_NOT_FOUND,
144144
);
145145
} catch (UnauthorizedHttpException) {
146-
$response = new RedirectResponse(url: '/login');
146+
$response = new RedirectResponse(url: './login');
147147
if (str_contains(
148148
haystack: $urlMatcher->getContext()->getBaseUrl(),
149149
needle: '/api',

0 commit comments

Comments
 (0)