Skip to content

Commit 72febc4

Browse files
swissspidyCopilot
andauthored
Update src/Site_Command.php
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent a63eeab commit 72febc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Site_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ public function create( $args, $assoc_args ) {
455455
}
456456

457457
$custom_domain = $parsed_url['host'];
458-
$custom_path = isset( $parsed_url['path'] ) ? $parsed_url['path'] : '/';
458+
$custom_path = isset( $parsed_url['path'] ) ? '/' . ltrim( $parsed_url['path'], '/' ) : '/';
459459

460460
// Ensure path ends with /
461461
if ( '/' !== substr( $custom_path, -1 ) ) {

0 commit comments

Comments
 (0)