Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(router): set full parent path for route path on debug page #1632

Merged
merged 1 commit into from
Mar 4, 2025

Conversation

milosdanilov
Copy link
Contributor

PR Checklist

On the route debug page, nested route paths are displayed with incorrect parent paths. When nesting routes using folders instead of dot notation in filenames (e.g., foo.bar.baz.page.ts), the Route Path column in the debug page does not reflect the correct structure.

Expected Behavior

If baz.page.ts is placed inside the foo/bar/ directory, the expected route should be /foo/bar/baz, which works correctly when accessed.

Actual Behavior

The route is accessible as expected, but the debug page incorrectly displays it as /bar/baz, as if it is missing its full parent path:

Screenshot 2025-03-03 at 12 24 16

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

[optional] What gif best describes this PR or how it makes you feel?

Sorry, something went wrong.

Copy link

netlify bot commented Mar 3, 2025

Deploy Preview for analog-blog ready!

Name Link
🔨 Latest commit ad3f46a
🔍 Latest deploy log https://app.netlify.com/sites/analog-blog/deploys/67c5969bfed6890008092e35
😎 Deploy Preview https://deploy-preview-1632--analog-blog.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Mar 3, 2025

Deploy Preview for analog-docs ready!

Name Link
🔨 Latest commit ad3f46a
🔍 Latest deploy log https://app.netlify.com/sites/analog-docs/deploys/67c5969bafc6be0008ace078
😎 Deploy Preview https://deploy-preview-1632--analog-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Mar 3, 2025

Deploy Preview for analog-app ready!

Name Link
🔨 Latest commit ad3f46a
🔍 Latest deploy log https://app.netlify.com/sites/analog-app/deploys/67c5969b1a19980008825edd
😎 Deploy Preview https://deploy-preview-1632--analog-app.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Mar 3, 2025

Deploy Preview for analog-ng-app ready!

Name Link
🔨 Latest commit ad3f46a
🔍 Latest deploy log https://app.netlify.com/sites/analog-ng-app/deploys/67c5969b46685800088af6e8
😎 Deploy Preview https://deploy-preview-1632--analog-ng-app.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@brandonroberts brandonroberts merged commit ccfeca5 into analogjs:beta Mar 4, 2025
23 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants