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.

When compare locations, only path is compared, params are ignored

See original GitHub issue

As you can see in TurboNavRule

    private fun locationPathsAreEqual(first: String?, second: String?): Boolean {
        if (first == null || second == null) {
            return false
        }

        return URI(first).path == URI(second).path
    }

This will cause unexpected pop presentation. Shouldn’t params be compared too? Since params also reflect page state.

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
jwarkcommented, Jul 21, 2021

@fffx @jwark I’ve changed the default behavior in #178, but have added a new path property configuration option to restore the previous behavior for any desired paths.

Thanks @jayohms for putting in the effort to get this fixed and for letting us know, I really appreciate it. 😃

1reaction
jayohmscommented, Jul 21, 2021

@fffx @jwark I’ve changed the default behavior in #178, but have added a new path property configuration option to restore the previous behavior for any desired paths.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Comparing $location.path() to route with params not working
I have an app where I must allow non logged in users to access some pages, such as forget password form, registration etc....
Read more >
Option to match exactPath that ignores query parameters and ...
This request is for the ability to do an exact match but only on the path, not the whole URL, i.e. the exactPath...
Read more >
Ignore Order — DeepDiff 6.2.2 documentation - Zepworks
DeepDiff by default compares objects in the order that it iterates through them in iterables. In other words if you have 2 lists,...
Read more >
BGP Best Path Selection Algorithm - Cisco
This comparison only occurs if the first (the neighboring) AS is the same in the two paths. Any confederation sub-ASs are ignored.
Read more >
gitignore Documentation - Git
When deciding whether to ignore a path, Git normally checks gitignore patterns ... These patterns match relative to the location of the .gitignore...
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