added alternative how to handle relative urls