src/Ffcms/Core/Network/Response.php 1 location
|
@@ 20-22 (lines=3) @@
|
17 |
|
public function redirect($to, $full = false) |
18 |
|
{ |
19 |
|
$to = trim($to, '/'); |
20 |
|
if (false === $full && !Str::startsWith(App::$Alias->baseUrl, $to)) { |
21 |
|
$to = App::$Alias->baseUrl . '/' . $to; |
22 |
|
} |
23 |
|
$redirect = new FoundationRedirect($to); |
24 |
|
$redirect->send(); |
25 |
|
exit('Redirecting to ' . $to . ' ...'); |
src/Ffcms/Core/Arch/View.php 1 location
|
@@ 247-249 (lines=3) @@
|
244 |
|
$output = []; |
245 |
|
foreach ($items as $item) { |
246 |
|
$item = trim($item, '/'); |
247 |
|
if (!Str::startsWith(App::$Alias->scriptUrl, $item) && !Str::startsWith('http', $item)) { // is local without proto and domain |
248 |
|
$item = App::$Alias->scriptUrl . '/' . $item; |
249 |
|
} |
250 |
|
$output[] = $item; |
251 |
|
} |
252 |
|
|