Thousands of links using...
-
We have a tool to generate HTML reports. And in this generated HTML we have links in between sections. Those links are very useful for jumping in between sections. However, When the HTML is saved/moved to another location, all the links started to fail. Simple inspection of the HTML source revealed the problem. All the links used were like this:
[some text](file:///C:/Documents%20and%20Settings/krumia/Local%20Settings/Temp/20120301-00035.html#ta026A3538)
They used freaking absolute paths. Could have just used the section anchor
#ta026A3538
. Now think of the disadvantages: (a) As soon as you save the freaking file anywhere else it will be useless. (b) File size increases because of long absolute paths. :doh:Peace, ye fat guts!
-
We have a tool to generate HTML reports. And in this generated HTML we have links in between sections. Those links are very useful for jumping in between sections. However, When the HTML is saved/moved to another location, all the links started to fail. Simple inspection of the HTML source revealed the problem. All the links used were like this:
[some text](file:///C:/Documents%20and%20Settings/krumia/Local%20Settings/Temp/20120301-00035.html#ta026A3538)
They used freaking absolute paths. Could have just used the section anchor
#ta026A3538
. Now think of the disadvantages: (a) As soon as you save the freaking file anywhere else it will be useless. (b) File size increases because of long absolute paths. :doh:Peace, ye fat guts!
-
We have a tool to generate HTML reports. And in this generated HTML we have links in between sections. Those links are very useful for jumping in between sections. However, When the HTML is saved/moved to another location, all the links started to fail. Simple inspection of the HTML source revealed the problem. All the links used were like this:
[some text](file:///C:/Documents%20and%20Settings/krumia/Local%20Settings/Temp/20120301-00035.html#ta026A3538)
They used freaking absolute paths. Could have just used the section anchor
#ta026A3538
. Now think of the disadvantages: (a) As soon as you save the freaking file anywhere else it will be useless. (b) File size increases because of long absolute paths. :doh:Peace, ye fat guts!
-
Interesting how the hard coded URL has the word krumia in it! ;P
"You get that on the big jobs."
-
We have a tool to generate HTML reports. And in this generated HTML we have links in between sections. Those links are very useful for jumping in between sections. However, When the HTML is saved/moved to another location, all the links started to fail. Simple inspection of the HTML source revealed the problem. All the links used were like this:
[some text](file:///C:/Documents%20and%20Settings/krumia/Local%20Settings/Temp/20120301-00035.html#ta026A3538)
They used freaking absolute paths. Could have just used the section anchor
#ta026A3538
. Now think of the disadvantages: (a) As soon as you save the freaking file anywhere else it will be useless. (b) File size increases because of long absolute paths. :doh:Peace, ye fat guts!
Haha, I remember one government site. That entire site was developed in the local windows based PC and when they upload it to the linux server all the freaking path was absolute "C:/Program Files/PHP/WWW/....." Mentally disorder will do better work than that one