Form redirect to URL containing query term? - pure HTML or Django -


I want to create a search box in the Django located in the URL / search, and a friendly URL like / search / queryerum - URL Instead of having q = queryterm)

Then the user type in a query period, it takes them to the / search / queryter, and shows a list of results.

I can get the results and display exactly one URL like / search / queryterm

but I do not know the best way to handle URL redirects from the form. Can this form have a redirect in pure HTML (which seems to be a little hacked), and if so, how can I implement it?

Or the form / search / search / query page? Will not it slow down?

Thank you!

Posting a search query is an incorrect idea and misuse of an HTTP request to be a GET request Should i think Is there a reason that you can not redirect to a friendly URL based on the request.GET parameter?

I also disagree with the principle of using "friendly" URLs for search queries; They should be used for permanent results, like some transient search results, in my opinion. The reason is a type of conflict for "friendly" url because the crosstring was being misused to reach them should exist at the same URL, such as / Product.php? Id = 35 . I do not think the search results fall into this category.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

jquery - SimpleModal Confirm fails to submit form -

php - Multiple Select with Explode: only returns the word "Array" -