Skip to content

Commit

Permalink
Set the default page route attributes to without menu redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
tabuna committed Nov 10, 2023
1 parent 5b3b4d7 commit 64a706c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Http/Middleware/SetDefaultVersionForUrl.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class SetDefaultVersionForUrl
public function handle(Request $request, Closure $next): Response
{
URL::defaults(['version' => $request->route()->parameter('version', Docs::DEFAULT_VERSION)]);
URL::defaults(['page' => $request->route()->parameter('page', 'installation')]);

return $next($request);
}
Expand Down

0 comments on commit 64a706c

Please sign in to comment.