Skip to content

Commit

Permalink
改进parseUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Nov 24, 2024
1 parent ee82f24 commit e4f12db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/think/route/Url.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ protected function parseUrl(string $url, string | bool &$domain): string
$path = explode('/', $url);
$action = array_pop($path);
$controller = empty($path) ? $controller : array_pop($path);
$url = str_replace('.', '/', $controller) . '/' . $action;
$url = $controller . '/' . $action;
$auto = $this->route->getName('__think_auto_route__');
if (!empty($auto) && !strpos($controller,'.')) {
$module = empty($path) ? $request->layer() : array_pop($path);
Expand Down

0 comments on commit e4f12db

Please sign in to comment.