#Routing not going to new route even though it exists

1 messages · Page 1 of 1 (latest)

visual meteor
#

I have a link from /[a] to /[a]/b where a is dynamic but for some reason when I create a Link on the /[a] page to /[a]/b it doesn't work. I have a live example on my site, but don't want to share for privacy, can create a minimal example if that helps.

night panther
#

Yes, please create a minimal example so we can help. Thanks!

strong smelt
visual meteor
#

this is the link that renders it:

<Link to={`/patient/${patient.id}/prescreen`} className={cn(buttonVariants(), "")}>
                        Start Prescreen
                    </Link>
#

and /routes structure:

sturdy hull
#

can you inspect the developer tools and share what is rendered at href attribute ??

#

it is likely that you might have double slashes created in url, so if you check that "href " it might reveal more

#

@visual meteor

visual meteor
#

@sturdy hull Appreciate your comment, somehow it randomly started working with no changes to the code... very confused here but wtv