Skip to content

Commit 43da6f5

Browse files
committed
Fix subdomain using root domain link
1 parent 1aad1e0 commit 43da6f5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

server.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,12 @@ function get_valet_site_path($valetConfig, $siteName, $domain)
135135
if (in_array($file, ['.', '..', '.DS_Store'])) continue;
136136

137137
// match dir for lowercase, because Nginx only tells us lowercase names
138-
if (strtolower($file) === $siteName || strtolower($file) === $domain) {
138+
if (strtolower($file) === $siteName) {
139+
$valetSitePath = $path.'/'.$file;
140+
break;
141+
}
142+
143+
if (strtolower($file) === $domain) {
139144
$valetSitePath = $path.'/'.$file;
140145
}
141146
}

0 commit comments

Comments
 (0)