Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

246
Views
how to replace a specific query param in inertia vue?

I m trying to create a searchable list in a edit screen of my project. its laravel inertia vue project. i'm using this.$inertia.get() function and i want to filter some data according to my query param. filtering is working as i expected. but i want to hide that query param from the url.

for an example:

http://my-site.test/shows/2.

and i have tried these codes for get results.

this.$inertia.get(route('shows.edit', {id: 2, _query: {term: event.target.value}}, {replace:  true}), {}, {preserveState: true});

and

this.$inertia.get('/shows/2/', {term: event.target.value}, {preserveState: true, replace: true});

But none of these are worked as i expected. When i search something in the search field my address bar changes like this:

http://my-site.test/shows/2?term=dfgddfg

But i don't want to stay the term param in browser history. Is there a way to replace only the term param.

I followed below youtube video to get a reference.

Create a searchable select field with Laravel, InertiaJS and vue-multiselect

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!