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.

8.7.1 Using a hash is ignored when not using a hash based routing

See original GitHub issue

I do not use the hash based routing, but it looks like the path gets ignored when creating a match.

Here is an example to illustrate, in my app I navigate to the path:

/appointments?#start=2021-01-01&appointmentId=1

However the match on the uses has the following structure:

{
    data: null,
    params: null,
    queryString: "",
    route: { ... },
    url: "appointments"
}

There is no information in the match at all about the hash url, when before this was available in the query option that used to be available. Is there any way to get the hash information? It would be ideal if we didn’t read the url in the browser ourselves because I think it may not be consistently there (especially because we are using a separate router for legacy paths).

Would it make sense to get the hash part included in the match?

Cheers, Felix

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
ajorkowskicommented, Jan 28, 2021

Awesome, this looks like it will work really well. I will try to use the new 8.8 version and let you know how it goes. Probably won’t get to it until next week however.

0reactions
ajorkowskicommented, Feb 2, 2021

@krasimir Yes I can confirm works great, I was able to upgrade navigo with these changes 😃 I’ll close it now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using Hashed vs. Non-Hashed URL Paths in Single Page Apps
There are two ways to support routing in single-page apps: Hashed URL Paths — We break the URL path with a # (Hash)...
Read more >
8. Message Routing - Spring
This chapter covers the details of using Spring Integration to route messages. ... If set to true , failures to send to a...
Read more >
reactjs - What is the difference between HashRouter and ...
It uses URL hash, it puts no limitations on supported browsers or web server. Server-side routing is independent from client-side routing.
Read more >
Changelog - Cypress Documentation
Addressed in #25138. Fixed an issue with Angular Component Testing where a custom sourceRoot configuration would not be respected. Fixes #24827. Fixed ...
Read more >
SOLUTIONS MANUAL
Chapter 11: Message Authentication and Hash Functions 59 ... 2.10 The Playfair algorithm is based on the use of a 5 5 matrix...
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