Fix url paths

This commit is contained in:
Artem Vasilev 2024-03-16 23:41:53 +03:00
parent ec47b0a577
commit 2d34c4eb08

View File

@ -77,9 +77,9 @@ class ClientModel extends AdminModel
{ {
$uri = new Uri(Uri::root()); $uri = new Uri(Uri::root());
$data->def('authorize_url', (string) $uri->setPath('login/oauth/authorize')); $data->def('authorize_url', (string) $uri->setPath('/login/oauth/authorize'));
$data->def('token_url', (string) $uri->setPath('login/oauth/token')); $data->def('token_url', (string) $uri->setPath('/login/oauth/token'));
$data->def('profile_url', (string) $uri->setPath('login/oauth/profile')); $data->def('profile_url', (string) $uri->setPath('/login/oauth/profile'));
} }
$this->preprocessData('com_oauthserver.client', $data); $this->preprocessData('com_oauthserver.client', $data);