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.

False positives for active Links

See original GitHub issue

The current implementation of pathnameIsActive gives false positives for what I’d expect to be a fairly common case: numbers in path parameters.

Just hit this in v1.0.0-beta2 in an app which is using the index of some items in an array as a parameter. Once you start hitting double-digit numbers, you get false positives from single-digit numbers.

rr-false-positives

In this example, the URL is /1/10 and links for both /1/1 and /1/10 are marked active.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:28 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
ryanflorencecommented, Sep 9, 2015

I think #1842, <IndexRoute/> and <IndexLink/> address almost everything here.

Only thing missing is “I am active only when I’m the deepest active route”, would love for somebody to create a <ExactLink/> or <Link to="/wherever" exact/> or something.

0reactions
taioncommented, Nov 7, 2015

IndexLink in RC4 actually does behave like the ExactLink described above - there wasn’t an easy way to get it to work otherwise.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Threat Hunting False Positives
These signs we get from a Threat Hunting tool include clear signs of both malicious activity and legitimate traffic. The legitimate traffic, ...
Read more >
"This link is malicious" false-positive on messages recieved ...
We are encountering issues with recipients having links in our sent emails as being marked as malicious by Outlook Advanced Threat ...
Read more >
Identifying False Positives in Email Clicks - Act-On Connect
Identifying False Positives in Email Clicks ... Ignore clicks on the View in Browser Link from Reports; Ignore Known IP Addresses.
Read more >
Vulnerability scans and false positives: the importance of ...
Web application scanning tools will automatically review a website by crawling through all its links, reviewing each page using an algorithm to ...
Read more >
The "false positive paradox" and risks of testing ...
Even a test with a very high 99% specificity (1% chance of false positives), when used to screen asymptomatic populations with a low...
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