'Invoke wrong Asset URL in single spa micro front-end

I am using single-spa library to achieve micro front-end functionality.

I am using assets to display in the pages. But the URL that is generated to fetch assets is wrong.

For instance, I have used information.svg icon in self-service application then the URL is expected to be 'https://customer.tcm.com/self-service/assets/information.svg'. But the URL that is being fetched is 'https://customer.tcm.com/root/assets/information.svg' or 'https://customer.tcm.com/assets/information.svg' which obviously returns 404 response.

Has anyone faced this issue earlier? Can someone help me here to resolve this.

Thanks in advance.



Solution 1:[1]

from my experience

anguler ex -> index.html

base href="." OR base href="/" change to base href="/server_root/"

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 H3AR7B3A7