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:
parent
7eaa0eca30
commit
0993676a05
@ -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');
|
||||
}
|
||||
}
|
||||
|
@ -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');
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
@ -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";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user