1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Adjustments for react urls

This commit is contained in:
David Bomba 2023-06-11 16:09:16 +10:00
parent 7eaa0eca30
commit 0993676a05
5 changed files with 5 additions and 5 deletions

View File

@ -869,6 +869,6 @@ class Client extends BaseModel implements HasLocalePreference
public function portalUrl(bool $use_react_url): string
{
return $use_react_url ? config('ninja.react_url'). "/clients/{$this->hashed_id}": config('ninja.app_url');
return $use_react_url ? config('ninja.react_url'). "/#/clients/{$this->hashed_id}": config('ninja.app_url');
}
}

View File

@ -560,7 +560,7 @@ class Payment extends BaseModel
public function portalUrl($use_react_url)
{
return $use_react_url ? config('ninja.react_url')."/payments/{$this->hashed_id}/edit" : config('ninja.app_url');
return $use_react_url ? config('ninja.react_url')."/#/payments/{$this->hashed_id}/edit" : config('ninja.app_url');
}
}

View File

@ -203,6 +203,6 @@ class Product extends BaseModel
public function portalUrl($use_react_url): string
{
return $use_react_url ? config('ninja.react_url') . "/products/{$this->hashed_id}/edit" : config('ninja.app_url');
return $use_react_url ? config('ninja.react_url') . "/#/products/{$this->hashed_id}/edit" : config('ninja.app_url');
}
}

View File

@ -203,7 +203,7 @@ class PurchaseOrderInvitation extends BaseModel
{
$entity_type = Str::snake(class_basename($this->entityType()));
return config('ninja.react_url')."/{$entity_type}s/{$this->{$entity_type}->hashed_id}/edit";
return config('ninja.react_url')."/#/{$entity_type}s/{$this->{$entity_type}->hashed_id}/edit";
}
}

View File

@ -148,6 +148,6 @@ trait Inviteable
{
$entity_type = Str::snake(class_basename($this->entityType()));
return config('ninja.react_url')."/{$entity_type}s/{$this->{$entity_type}->hashed_id}/edit";
return config('ninja.react_url')."/#/{$entity_type}s/{$this->{$entity_type}->hashed_id}/edit";
}
}