'What does it mean to make URL relative?

My project is build using Angular and Springboot. In environemnt.prod.ts file I have backend url.

I am not sure what does it mean to make url ralative so that it should use same server url?

enviroment.prod.ts file

production:true,
url:'http://localhost:8080/api/amazon/steven'


Sources

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

Source: Stack Overflow

Solution Source