Skip to content

Commit 0b7047a

Browse files
committed
fix the fix pr for slash in the path
1 parent f3a3224 commit 0b7047a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/PanelSwitch.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ public function getPanels(): array
298298
protected function getPanelUrl(Panel $panel)
299299
{
300300
return Uri::new()
301-
->withPath('/' . ltrim($panel->getPath()), '/')
301+
->withPath("/" . ltrim($panel->getPath(), "/"))
302302
->withHost(Arr::first($panel->getDomains()))
303303
->toString();
304304
}

0 commit comments

Comments
 (0)