Commit cd149973 authored by Emiliano Balbuena's avatar Emiliano Balbuena

(wip): Get query string

1 merge request!761WIP: Fix email confirmation on SSR
Pipeline #115002530 passed with stages
in 95 minutes and 8 seconds
......@@ -9,10 +9,11 @@ export class ConfigsService {
constructor(private client: Client, private requestUrl: RequestUrlService) {}
async loadFromRemote() {
console.log(this.requestUrl.get());
try {
this.configs = await this.client.get('api/v1/minds/config');
this.configs = await this.client.get(
`api/v1/minds/config?${this.requestUrl.getQueryString()}`,
null /* ALWAYS NULL */
);
} catch (err) {
console.error(err);
}
......
......@@ -17,6 +17,12 @@ export class RequestUrlService {
requestUrl: this.requestUrl,
});
return this.requestUrl;
return this.requestUrl || '';
}
getQueryString() {
const url = this.get().split('?', 2);
return url[1] || '';
}
}
Please register or to comment