B
B
BonBon Slick2016-11-15 23:04:06
JavaScript
BonBon Slick, 2016-11-15 23:04:06

Get current url and modify it in view, without laravel 5.3 controller?

You need to change the number of results on the search page.
The search worked, and the URL may be different:

->http://lara53/products/search/5?searcher=Product+Andrew
->http://lara53/products/search/5?searcher=Andrew

etc.
Number 5, the number of results, at the bottom I have a select that sends to different URLs.
How can I now change only .../5?...the number using Laravel 5.3 or jQuery , while preserving the search results ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
entermix, 2016-11-16
@BonBonSlick

Related question: How to use JS to take the current URL of the page, replace the domain name with another one and paste it on the page?
Take the current URL, for example via window.location.href, do a replace for the link and then redirect the user.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question