Skip to content

Commit

Permalink
do not add ext if basename part contains dot
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Sep 15, 2023
1 parent ed8fac4 commit 6c902dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,9 @@ public function url($page = [], array $extraRequestUrlArgs = []): string
$pagePath = basename($pagePath, $this->urlBuildingExt);
}
}
$pagePath .= $this->urlBuildingExt;
if (!str_contains(basename($pagePath), '.')) {
$pagePath .= $this->urlBuildingExt;
}

$args = $extraRequestUrlArgs;

Expand Down

0 comments on commit 6c902dd

Please sign in to comment.