How To Change Url Doing Some Changes in Search Form

admin2025-06-03  3

How can url show like i want or prefix text in search query

form class="search" action="/search">


input type="hidden" name="type" value="product" />

input type="text" placeholder="Search Your Model Here.." name="q" value="{{ search.terms | escape }} iphone 6 photo cover " size="45" />
input type="submit" value="Search" value="product" />
input type="hidden" name="title" value="Photo" />
</form>

now i am getting this url

;q=+iphone+6&title=Photo

this is the code i place there i even use tag its not searching in tag i just want to add one word after search query

like ;q=+iphone+6=Photo . just want to add =photo after search query how can i change something in this code for that please help

How can url show like i want or prefix text in search query

form class="search" action="/search">


input type="hidden" name="type" value="product" />

input type="text" placeholder="Search Your Model Here.." name="q" value="{{ search.terms | escape }} iphone 6 photo cover " size="45" />
input type="submit" value="Search" value="product" />
input type="hidden" name="title" value="Photo" />
</form>

now i am getting this url

https://paybydaddy/search?type=product&q=+iphone+6&title=Photo

this is the code i place there i even use tag its not searching in tag i just want to add one word after search query

like https://paybydaddy/search?type=product&q=+iphone+6=Photo . just want to add =photo after search query how can i change something in this code for that please help

Share Improve this question edited Feb 2, 2019 at 3:11 Jacob Peattie 44.3k10 gold badges50 silver badges64 bronze badges asked Feb 2, 2019 at 2:54 keshav sharmakeshav sharma 1 1
  • Some One Can Solve This Problem Please?? – keshav sharma Commented Feb 2, 2019 at 6:48
Add a comment  | 

1 Answer 1

Reset to default 1

The character = in a URL is used to separate a name from a value (this is how the query arguments are defined) and it cannot be used as such in your example unless you URL encode it.

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1748946104a315053.html

最新回复(0)