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.

Unable to naviagate to nested route (routify v3)

See original GitHub issue

First rule of bug posting There are no rules!

With that out of the way, there are a few things that might help us help you faster. You pick and choose what you think is relevant.

bug description It doesn’t work as expected when navigating to community/[id] with $goto. If you see the below recorded clip, when pressing Feeds button, it calls $goto($url('/community/[id]/settings', {id: '1234'}))' for testing but redirects to different url.

https://user-images.githubusercontent.com/27461460/146673420-ae2d3052-5f15-4b73-89d6-963d755636db.mp4

However, when I type the actual URL from the browser, it navigates correctly (in localhost but not in production).

https://user-images.githubusercontent.com/27461460/146673423-eeb98153-19a6-484e-87f4-732a63ea8274.mp4

package.json The script section or even just the script you’re running.

yarn dev

version

"@roxi/routify": "^3.0.0-next.69",

screenshot I’ve posted clip above.

The source code is in https://github.com/wecount-dev/wecount

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:23 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
jakobrosenbergcommented, Dec 22, 2021

Can you confirm that changing this

$goto($url('/community/[id]/settings', {id: '1234'}))'

to

$goto('/community/[id]/settings', {id: '1234'})'

fixes it.

0reactions
hyochancommented, Dec 26, 2021

I finally found out the problem. It was this commit https://github.com/wecount-dev/wecount/pull/123/commits/d33d1173f779a9194df9613b65afaebc775484df.

Removing <!-- routify:meta bundle --> finally worked and @jakobrosenberg your solution was correct.

Thank you so much!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Help needed for nested route scope (Tab functionality) #355
I am having some issues getting the "scope" of a nested route to update when the URL of the route changes when using...
Read more >
Helpers - Routify
Absolute, relative or named path. params. type: {Object} (default value: {} ). Parameters to be parsed to the URL ...
Read more >
relative path of image gets affected by nested routes in routify
I have a nested route in routify with the below folder structure, where the image is placed in public folder and referred here...
Read more >
Handle Svelte routes with Routify? - Ashutosh Kukreti
The routing allows the application to render the content based on the URL. For Ex- • GET /user returns the list of all...
Read more >
svelte-navigator - npm Package Health Analysis - Snyk
Simple, accessible routing for Svelte For more information about how to use this ... 2.0.3 ... scoped paths in navigate with useNavigate ,...
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