Instead of using basepath: "./company/the-tool", try setting basepath: "". TanStack Router is already handling relative paths based on the current URL. Since your app is under /company/the-tool, it should automatically resolve the correct routes