Reputation: 33
My html form is:
<form action='update/'>
some code here ...
</form>
When the form is submitted at a url, 127.0.0.1/account/1
, it sends the request to 127.0.0.1/account/update
.
I want it to send the request to 127.0.0.1/account/1/update
.
(I am using Django)
Thank you
Upvotes: 0
Views: 139
Reputation: 943207
To resolve a relative path:
/
in the pathYou seem to want it to skip step 3, but you can't can't change the way that works.
So your options:
/account/1/
action
's path to 1/update
action
's to an absolute path (/account/1/update
)action
to an absolute path using your own rules.I don't recommend the last option.
Upvotes: 1