Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Commit

Permalink
Redirect to admin based on relative url (works in sub-folder)
Browse files Browse the repository at this point in the history
  • Loading branch information
rijkvanzanten committed Nov 11, 2019
1 parent 9f24d50 commit e42fbf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/endpoints/Home.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Home extends Route
{
public function __invoke(Request $request, Response $response)
{
$response = $response->withRedirect('/admin');
$response = $response->withRedirect('./admin');
return $this->responseWithData($request, $response, []);
}
}

0 comments on commit e42fbf9

Please sign in to comment.