Hello List, I noticed that Zope adds a <base href... > tag to my HTML-Head. Why and how can i stop it? THX, Michael --- <name>michael stoeckel</name> <email>michael.stoeckel@web.de</email> [ESC]:wq ________________________________________________________________ Viren? Wir wissen nicht was Ihr Arzt empfiehlt. Wir empfehlen den Virencheck für Dateianhänge! http://freemail.web.de/features/?mc=021159
Are you using Zope behind Apache or Virtualhosts ? In this case i use a Siteroot to prevent the base... Entry. But you can also set your own base entry with Zope. Harry
-----Ursprüngliche Nachricht----- Von: zope-admin@zope.org [mailto:zope-admin@zope.org] Im Auftrag von Michael Stöckel Gesendet: Freitag, 15. November 2002 14:26 An: zope@zope.org Betreff: [Zope] base href
Hello List,
I noticed that Zope adds a <base href... > tag to my HTML-Head.
Why and how can i stop it?
THX, Michael
--- <name>michael stoeckel</name> <email>michael.stoeckel@web.de</email> [ESC]:wq ________________________________________________________________ Viren? Wir wissen nicht was Ihr Arzt empfiehlt. Wir empfehlen den Virencheck für Dateianhänge! http://freemail.web.de/features/?mc=021159
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Am 15.11.2002, 14:26 Uhr schrieb Michael Stöckel: -----------------------------------
Hello List,
I noticed that Zope adds a <base href... > tag to my HTML-Head.
Why and how can i stop it?
I don't know why, but you can prevent this by adding the following line to your DTML-documents/methods: <!-- <html><head> <base href="dummy"> </head> --> (can't find the HOWTO anymore, where I read this tip) Or you can insert your own base-tag, which also prevents Zope from adding it. (see http://www.zope.org/Members/wisser/base) Greetings, Hon.
On Fri, Nov 15, 2002 at 04:33:13PM +0100, Thieu-Hon Tran wrote:
Am 15.11.2002, 14:26 Uhr schrieb Michael St?ckel: -----------------------------------
Hello List,
I noticed that Zope adds a <base href... > tag to my HTML-Head.
Why and how can i stop it? (snip) Or you can insert your own base-tag, which also prevents Zope from adding it. (see http://www.zope.org/Members/wisser/base)
Before you go fiddling with it, you should understand that it's there for a good reason. If you view a folder bar/foo, you get bar/foo/index_html. But your browser doesn't know the difference. Relative links should be relative to bar/foo, but your browser thinks foo is a document so it tries to get them relative to bar/. So when zope invokes a folder's default view, it inserts the <base> tag. i fiddled with it at one point and found that with no <base> tag at all, viewing zope folders directly (not specifying index_html) resulted in many lost images. -- Paul Winkler http://www.slinkp.com "Welcome to Muppet Labs, where the future is made - today!"
Michael Stöckel writes:
I noticed that Zope adds a <base href... > tag to my HTML-Head.
Why and how can i stop it? Zope sometimes effectively changes the URL. Prominent examples are:
* Your URL looks like ".../A" and "A" has/acquires a non-None "index_html". In this case, the effective URL becomes ".../A/index_html" * You use the ":method" or ":action" form control suffix In this case the ":method/action" effectively adds some components to the action URL. In all these cases, relative URLs may be wrong unless Zope tells the browser about the new base URL. Zope does precisely this, by adding the "base" tag. This is a good thing. Usually, you should not try to remove it. Dieter
participants (5)
-
Dieter Maurer -
Harald Winkelmann -
Michael Stöckel -
Paul Winkler -
Thieu-Hon Tran