Skip to content

Breaking change caused by "fix: fullpath handling" PR #6635

@supermacro

Description

@supermacro

Which project does this relate to?

Router

Describe the bug

#6404 led to a large amount of type errors in our codebase since a trailing / was added to our routes.

Further, we now have a weird UX where the keys of FileRoutesByFullPath are different than the keys of FileRoutesByTo:

Image Image

Given this distinction, we end up with weird calls to navigate and related apis like the one below

Image

Your Example Website or App

https://not-allowed-to-share.com

Steps to Reproduce the Bug or Issue

Generate the route tree prior to b42f84a, ensuring you have one or more index.tsx route files.

Note that they won't have a trailing /

Now generate again but with b42f84a

Note that now those routes have a trailing /

Expected behavior

No breaking change

Screenshots or Videos

No response

Platform

  • Router / Start Version: 1.159.5
  • OS: macos
  • Bundler: vite
  • Bundler Version: 7.3.1

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions