My website has menu of internal links that is in its own file. I use jQuery to insert this file into an <aside> tag. In order for this menu to work in all levels of sub-folders, this menu must use absolute URLs. I use a PHP variable, stored in its own file, to set the value of each web page’s <base> tag according to whether the page is on my XAMPP local host, or on the Sonic server.
This setup means that I can only use absolute URLs. I would prefer to have the option of using relative URLs when relative URLs are more convenient for the task at hand.
Can anyone tell how to achieve this, or even just suggest a search engine query that would help me find an answer?