1
0
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:
Hillel Coren 2018-01-08 12:14:09 +02:00
parent 7b678dda54
commit 1d947c5d30
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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';