1. OE does not properly parse <A> tags if the links are contained in single quotes, that is ` ` vs. " ". I am aware that this violates HTML standards but I have encountered sites that do this through bad PHP programming. However, FireFox and IE have no problem handling this issue so I thought I would point it out.
2. URL substitution does not apply properly to relative, "soft" links as opposed to a "hard" links.
ex. <a HREF="http://www.somewhere.com/dir/file.html">click here</a>
vs.
<base href="http://www.somewhere.com/dir/">
<a href="file.html">no, click here</a>
URL substitution will properly process the whole link in the first example, but not the second example. In the second, URL substitution will only process the relative part, but not the base part of the url.
--David
2. A real page example would be helpful here. And what exactly you are trying to do with the substitution.
Thank you!
Best regards,
Oleg Chernavin
MP Staff
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
</HEAD>
<BODY>
<BASE HREF="http://localhost/dir1/dir2/">
<A HREF=`../../page.htm`>click here</A>
<p>
<p>
<A HREF=`http://localhost/page2.htm`>or click here</A>
</BODY>
</HTML>
Both links work properly in IE or Firefox but the first one is not downloaded correctly by OE.
OE trys to download: http://localhost/dir1/dir2/page.htm, which is incorrect; it should grab http://localhost/page.htm
2. Take following html file:
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
</HEAD>
<BODY>
<BASE HREF="http://localhost/dir1/dir2/">
<A HREF=`../page.htm`>click here</A>
<p>
<p>
<BASE HREF="http://localhost/dir3/dir2/">
<A HREF=`../page.htm`>or click here</A>
</BODY>
</HTML>
***first bug also affects this example, but let`s assume you have fixed that bug for this example***
I want a substitution rule like this:
http://localhost/dir1/* * *?printable
so link one would become: http://localhost/dir1/page.htm?printable
BUT link two would be unaffected.
As it is, I can only write a rule which affects either the BASE part or the RELATIVE part of the url, but not both together. That is what I would like to do.
URL:
*
Replace:
http://localhost/dir1/*
With:
http://localhost/dir1/*?printable
Oleg.