We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00e0028 commit e85f9f2Copy full SHA for e85f9f2
1 file changed
src/app/core/data/signposting-data.service.ts
@@ -25,7 +25,8 @@ export class SignpostingDataService {
25
* @param uuid
26
*/
27
getLinks(uuid: string): Observable<SignpostingLink[]> {
28
- const baseUrl = this.halService.getRootHref().replace('/api', '');
+ const regex = /\/api$/gm;
29
+ const baseUrl = this.halService.getRootHref().replace(regex, '');
30
31
return this.restService.get(`${baseUrl}/signposting/links/${uuid}`).pipe(
32
catchError((err) => {
0 commit comments