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:
@@ -41,6 +41,8 @@ class LinkController extends Controller
|
||||
'canCreate' => $this->billing->canCreate($account),
|
||||
'pricePerLink' => \App\Models\LinkWallet::pricePerLink(),
|
||||
'topupUrl' => ladill_account_url('wallet'),
|
||||
'publicHost' => parse_url($account->publicLinkBaseUrl(), PHP_URL_HOST) ?: ShortLink::publicHost(),
|
||||
'publicBaseUrl' => $account->publicLinkBaseUrl(),
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -51,6 +53,8 @@ class LinkController extends Controller
|
||||
return view('links.create', [
|
||||
'canCreate' => $this->billing->canCreate($account),
|
||||
'pricePerLink' => \App\Models\LinkWallet::pricePerLink(),
|
||||
'publicHost' => parse_url($account->publicLinkBaseUrl(), PHP_URL_HOST) ?: ShortLink::publicHost(),
|
||||
'publicBaseUrl' => $account->publicLinkBaseUrl(),
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user