Skip to content

Commit e85f9f2

Browse files
committed
[CST-5729] fix issue with signposting endpoint url replace
1 parent 00e0028 commit e85f9f2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/app/core/data/signposting-data.service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ export class SignpostingDataService {
2525
* @param uuid
2626
*/
2727
getLinks(uuid: string): Observable<SignpostingLink[]> {
28-
const baseUrl = this.halService.getRootHref().replace('/api', '');
28+
const regex = /\/api$/gm;
29+
const baseUrl = this.halService.getRootHref().replace(regex, '');
2930

3031
return this.restService.get(`${baseUrl}/signposting/links/${uuid}`).pipe(
3132
catchError((err) => {

0 commit comments

Comments
 (0)