I am working with a web site designer for a client and have run into an issue of how internal links in a web page should be constructed. I have always subscribed to the idea that all internal (same base URL) links on a site should be relative (no //www.mysite.com
at the beginning) for a whole variety of reasons. An obvious one is that it makes the site much easier to move to another location (e.g. put it in //www.mysite.com/development
or on a local computer for a new version of the site while testing and evaluating).
As a "reality check" I stated viewing the code of existing sites and found that most (of my very small survey) use absolute addressing. This surprised me.
Is there an advantage to the absolute addressing that I am missing?
I'm wondering if these sites were generated by code rather than by a human directly in which case they can be regenerated with the new base URL if they need to be moved.
Any good insight on this would be appreciated.