Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -172,13 +172,16 @@ codeunit 6392 "Continia Api Url"

local procedure COBaseUrl() Url: Text
var
EnvironmentInformation: Codeunit "Environment Information";
Handled: Boolean;
begin
OnGetCOBaseUrl(Url, Handled);
if Handled then
exit(Url);

exit('https://auth.continiaonline.com/api/v1');
if not EnvironmentInformation.IsSandbox() then
exit('https://auth.continiaonline.com/api/v1');
exit('https://demoauth.continiaonline.com/api/v1');
end;


Expand All @@ -192,6 +195,9 @@ codeunit 6392 "Continia Api Url"
if Handled then
exit(Url);

if EnvironmentInformation.IsSandbox() then
exit('https://democdnapi.continiaonline.com/api/v1.0');

LocalizedBaseUrl := GetBaseUrlForLocalization(EnvironmentInformation.GetApplicationFamily());
if LocalizedBaseUrl <> '' then
exit(LocalizedBaseUrl)
Expand Down
Loading