[Zope3-dev] Re: form action
Steve Alexander
steve@cat-box.net
Tue, 02 Apr 2002 16:29:17 +0100
Guido van Rossum wrote:
>
> Hm, strange. I don't understand why "." vs. "" makes any difference.
> If the effective url is foo/bar/index.html, it should send the request
> to "foo/bar/." or "foo/bar/", not to "foo/bar/index.html".
> In fact, in my browser (NS 4.78) it doesn't make a difference. What
> browser were you using?
A very recent Mozilla.
I'm trying things out with an empty action (action="") on
http://localhost:8080/jl/new.
In response to an empty action, Netscape 4 is posting /jl/new/
In response to an empty action, Mozilla is posting /jl/new/index.html
However, when I test things with an empty action, on
http://localhost:8080/jl/new/ (note the last slash)
In response to an empty action, Netscape 4 is posting /jl/new/
In response to an empty action, Mozilla is posting /jl/new/
Let me summarize using a table:
action=""
jl/new jl/new/
netscape 4 /jl/new/ /jl/new/
mozilla /jl/new/index.html /jl/new/
action="."
jl/new jl/new/
netscape 4 /jl/new/. /jl/new/.
mozilla /jl/new/ /jl/new/
In the odd mozilla case above, it looks like mozilla is using the base
href: http://localhost:8080/jl/new/index.html
An alternative fix would be to make the Job Board always link to "new/"
rather than just "new".
--
Steve Alexander