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

Pathless Layout Route Renders Empty HTML #3843

Open
sudipta9 opened this issue Mar 24, 2025 · 0 comments
Open

Pathless Layout Route Renders Empty HTML #3843

sudipta9 opened this issue Mar 24, 2025 · 0 comments

Comments

@sudipta9
Copy link

Which project does this relate to?

Router

Describe the bug

When defining a pathless layout route (_appLayout.tsx) inside a folder (app/), TanStack Router incorrectly treats it as a route. Instead of returning a Not found when accessing /app, it renders an empty HTML page.

Your Example Website or App

https://stackblitz.com/edit/github-aeat3k26

Steps to Reproduce the Bug or Issue

  1. go to the /app route

Expected behavior

Expected: /app should return Not found page (since _appLayout.tsx is pathless).

Actual: /app renders an empty HTML page instead.

Screenshots or Videos

No response

Platform

  • OS: [e.g. macOS, Windows, Linux]
  • Browser: [e.g. Chrome, Safari, Firefox]
  • Version: [e.g. 91.1]

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants