question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add a route that can be searched directly with parameters

See original GitHub issue

Hi, this is an amazing project, I want to use it as my blog’s global search, is it a use case?

Now I can manually enter https://github1s.com/theowenyoung/blog, and click the search button to search the files, but it’s really helped if there is a direct route to navigate the search panel. something like:

https://github1s.com/theowenyoung/blog/panel/search?q=term&files-include=content

does it possible? or if can, I can try to submit a pr.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
conwnetcommented, Jul 13, 2022

yes, and I think this is reasonable, let me support it at next version

1reaction
xcv58commented, Jul 13, 2022

I think it’s doable but we need to refactor the code to sync the search state with URL.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create a route with “search url” as parameter using Express.js
We can create our own routes with the help of the express.js middleware that routes our path to the desired location.
Read more >
Create a route with "search url" as parameter using Express
This code checks, if the query parameter s has been added and replies it as asked. If there is no query parameter named...
Read more >
Navigate to a URL with Query Strings (Search Params) in ...
React Router has a useSearchParams hook to help us read or update the query string of a route that's active, but it doesn't...
Read more >
Parameterised Routes • Angular - codecraft.tv
Let's turn the search route into a parameterised route where the search term is in the URL , so if I refresh the...
Read more >
Express Tutorial Part 4: Routes and controllers - MDN Web Docs
Route parameters are named URL segments used to capture values at specific positions in the URL. The named segments are prefixed with a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found