Make Ladill Link short URLs fully dynamic at click time.
Deploy Ladill Link / deploy (push) Successful in 1m55s
Deploy Ladill Link / deploy (push) Successful in 1m55s
Forward query strings and path suffixes to the live destination, resolve public hosts from config/custom domains instead of hardcoding ladl.link, and keep proxy Location rewrites on the visitor host.
This commit is contained in:
@@ -103,11 +103,11 @@ class LinkCustomDomainService
|
||||
public function isAppHost(string $host): bool
|
||||
{
|
||||
$host = preg_replace('/^www\./', '', strtolower(trim($host)));
|
||||
$public = (string) config('customdomain.public_host', config('link.public_domain', 'ladl.link'));
|
||||
$known = array_filter([
|
||||
(string) config('customdomain.app_host'),
|
||||
(string) config('customdomain.public_host'),
|
||||
'ladl.link',
|
||||
'www.ladl.link',
|
||||
$public,
|
||||
'www.'.$public,
|
||||
]);
|
||||
|
||||
return in_array($host, $known, true);
|
||||
|
||||
Reference in New Issue
Block a user