Closed Bug 497830 Opened 15 years ago Closed 15 years ago

POST URL's appearing in history and autocomplete bar

Categories

(Firefox :: Address Bar, defect)

x86
Windows Vista
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 434947

People

(Reporter: dorian_farrimond, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729) I have a web site that is ASP.NET MVC, it uses routing meaning some URL's are GET only and some are POST only. The URL's that do a post follow the established post redirect get (PRG) pattern, where the server code accepts the post, carries out the necessary functions, then redirects the user to a GET address, which avoids the problems of users getting warnings about resubmitting POST data. The problem is, when I issue the redirect, the old (POST) URL gets added to history and users can then access this, causing errors on the web site. Reproducible: Always Steps to Reproduce: 1. Visit http://www.dabs.com 2. Type "xbox" in the search bar Actual Results: Search works fine, however history and autocomplete contain the POST URL http://www.dabs.com/Product/ProductSearch. This cannot be accessed via a get. Expected Results: Search works, but http://www.dabs.com/Product/ProductSearch should not be in address bar. When the redirect occurs after the POST, a 302 status is used. I considered that 303 might be a more appropriate status to return, but after testing this did not make any difference in Firefox, the POST URL was still in history. This issue doesn't affect IE or Opera, but does affect Safari.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.