To deploy a recent project I must use absolute pathing but for testing locally outside a server I'd like to use relative pathing for most of links to external scripts and images.
On another project I'd like to dynamically change relative pathing to site relative when the project is loaded from a server.
For both projects I'd ideally like to employ some reusuable method with javascript or jQuery that would automatically redefine these links depending on the testing environment.
So I know I need to set up some type of global path variable.
And then in my HTML markup prepend the links with this variable.
But not sure how to implement.
Anyone have a solution?
file://protocol?