[Zope] How to kill that BASE HREF

Tom Neff tneff@bigfoot.com
Fri, 3 Mar 2000 15:12:27 -0500


If you are sure that you can get along without the BASE HREF in a virtually
hosted (or other) Zope page, there is a way to fool the ZPublisher so it
doesn't include the obnoxious tag.  Just put

	<base dummy=dummy>

near the top of your method.  This turns out to be enough to fool the fairly
droidal scanning code into thinking that no additional BASE tag is needed.
Since it's an unknown attribute it should be a total no-op in browsers.  Of
course they could write a smarter parser in a future release so caveat
Zopor, but it works for now.  I wish they hadn't relied on that tag to begin
with.