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.

routesMap: generic regex takes precedence before more specific route

See original GitHub issue

I may have missed something, but at least the question is very specific. I have following route map:

  path: '/specific'
  path: '/:generic+',

The thing is, that I cannot really access SPECIFIC route through the browser. The route is being resolved correctly while using redux-first-router-link + to prop + action, however when I refresh the page (or just enter the URL from outside of the app), I get the screen/content from the GENERIC route.

So the question is, is there an option to make more specific routes take precedence before the more generic ones?

I kinda realise that the routes design here may not be the smartest, and I probably should have some constant prefix before the GENERIC route, was just wondering if its somehow possible.

Already looked here: but haven’t really found any answer.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

ScriptedAlchemycommented, Sep 11, 2018

Hmm, this is a good point. I do like the idea of ranking.

ScriptedAlchemycommented, Oct 4, 2018

Will open this issue again on a new repo. RFR will be entering LTS and Rudy will be where new features are added. Ill update the readmes once i move it off a branch on this repo

Read more comments on GitHub >

github_iconTop Results From Across the Web

faceyspacey/redux-first-router - Optional path parameters?
and then elsewhere all the corresponding component maps needed to ... generic regex takes precedence before more specific route #273.
Read more >
map all requests instead of specific pattern in Spring Boot
See Path Matching in the configuration section. ... Your more specific patterns will take precedence @RequestMapping(value = "/rest/**") ...
Read more >
HTTP routing — envoy 1.25.0-dev-a95421 documentation
Virtual hosts that map domains/authorities to a set of routing rules. · Prefix and exact path matching rules (both case sensitive and case...
Read more >
Routing Configuration Guide for Cisco 8000 Series Routers ...
A routing policy instructs the router to inspect routes, filter them, and potentially modify their attributes as they are accepted from a peer, ......
Read more >
Working with routes for HTTP APIs - Amazon API Gateway
Routes with greedy path variables have higher priority than the $default route.
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 Post

No results found

github_iconTop Related Hashnode Post

No results found