﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
10441	"form action=""."""	rihad	nobody	"Chapter 7 of The Django Book says this:

  The action=""."" means “Submit the form to the same URL as the current
page.”

I'm not sure this is standard or not, but it doesn't do what's
expected at least on Firefox 3.0.6 (Iceweasel of Debian 5.0 stable):
the form is simply submitted to an emtpy URL ""/"", which Django's web-
server logs on the console:

[08/Mar/2009 14:26:07] ""GET /search HTTP/1.1"" 200 205
[08/Mar/2009 14:26:10] ""GET /?q= HTTP/1.1"" 200 17

i.e. the first line shows me opening the form, and the next one logs
form submission, i.e. no HTTP-level redirects are ever done.

my urlpatterns looks like this:
...
        (r'^search/*$', search),
...

that is, the trailing slash is optional. Very interestingly, the "".""
action submits correctly to itself only if I open the form as ""http://
example.com/search/"", not as ""http://example.com/search"" in the first
place, as the Django Book recommends. So it would be more correct to
say that ""action=""."" submits the form to the same URL up to and
including the trailing slash, ignoring everything after it"".
"		closed	Documentation	dev		invalid			Unreviewed	0	0	0	0	0	0
