mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01:00
Handle slash at end of app url
This commit is contained in:
parent
7b678dda54
commit
1d947c5d30
@ -1421,7 +1421,7 @@ class Account extends Eloquent
|
||||
*/
|
||||
public function getSiteUrl()
|
||||
{
|
||||
$url = SITE_URL;
|
||||
$url = trim(SITE_URL, '/');
|
||||
$iframe_url = $this->iframe_url;
|
||||
|
||||
if ($iframe_url) {
|
||||
|
@ -247,7 +247,7 @@ class AccountPresenter extends Presenter
|
||||
$url .= $account->subdomain ?: 'app';
|
||||
$url .= '.' . Domain::getDomainFromId($account->domain_id);
|
||||
} else {
|
||||
$url = SITE_URL;
|
||||
$url = trim(SITE_URL, '/');
|
||||
}
|
||||
|
||||
$url .= '/client/login';
|
||||
|
Loading…
Reference in New Issue
Block a user