We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2c7ff7 commit 2b11568Copy full SHA for 2b11568
src/app/core/_services/shared/config.service.ts
@@ -21,6 +21,10 @@ export class ConfigService {
21
if (config && config.hashtopolis_backend_url) {
22
// If we get a config from the backend, we set the config property
23
ApiEndPoint = config.hashtopolis_backend_url;
24
+ // Remove trailing slash, because this causing invalid URLs
25
+ if (ApiEndPoint.endsWith('/')) {
26
+ ApiEndPoint = ApiEndPoint.slice(0, -1);
27
+ }
28
localStorage.setItem('prodApiEndpoint', ApiEndPoint);
29
} else if (config && !config.hashtopolis_backend_url) {
30
console.error('Invalid configuration file. Please check your config.json. Using defaults.');
0 commit comments