Skip to content

Conversation

@devin-ai-integration
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot commented Jan 9, 2026

Summary

Fixes duplicate URL issue where both /blog/otter-ai-review/ and /blog/otter-ai-review resolve to the same content, which is bad for SEO.

Changes:

  • Added trailingSlash: "never" to TanStack Router configuration to ensure client-side navigation uses non-trailing-slash URLs

Fixes #2925

Updates since last revision

The final change is minimal - just the trailingSlash: "never" router configuration. An initial attempt to add a Netlify redirect rule was reverted as it caused redirect loops with TanStack Start's SSR routing.

Note on CI: The web_ci check failed due to a timing issue where Playwright tests ran against the old Netlify deployment before the new one was ready. Manual testing confirms the new deployment works correctly (HTTP 200, no redirect loops). The CI may need to be re-run.

Review & Testing Checklist for Human

  • Verify no redirect loops occur on any routes (test /download, /blog/otter-ai-review, etc.)
  • Confirm client-side navigation between pages doesn't produce trailing slashes in the URL bar
  • Test that URLs with trailing slashes still resolve (they should 307 redirect to non-trailing-slash version via TanStack Start's SSR)

Recommended test plan: Open the Netlify preview deployment, navigate through several pages using internal links, and verify the URL bar never shows trailing slashes. Test curl -I https://deploy-preview-2927--hyprnote.netlify.app/download/ to confirm trailing slash URLs redirect properly without loops.

Note: This change primarily affects client-side navigation. Server-side requests with trailing slashes will get a 307 redirect to the non-trailing-slash version (handled by TanStack Start's SSR routing).

Notes

- Add trailingSlash: 'never' to TanStack Router configuration
- Add Netlify redirect rule to 301 redirect URLs with trailing slashes

Fixes #2925

Co-Authored-By: [email protected] <[email protected]>
@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR that start with 'DevinAI' or '@devin'.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@netlify
Copy link

netlify bot commented Jan 9, 2026

Deploy Preview for hyprnote ready!

Name Link
🔨 Latest commit a159f28
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote/deploys/6960a3f65117900008388ee2
😎 Deploy Preview https://deploy-preview-2927--hyprnote.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 project configuration.

@netlify
Copy link

netlify bot commented Jan 9, 2026

Deploy Preview for howto-fix-macos-audio-selection canceled.

Name Link
🔨 Latest commit a159f28
🔍 Latest deploy log https://app.netlify.com/projects/howto-fix-macos-audio-selection/deploys/6960a3f62ba3100008c15d21

@netlify
Copy link

netlify bot commented Jan 9, 2026

Deploy Preview for hyprnote-storybook canceled.

Name Link
🔨 Latest commit a159f28
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote-storybook/deploys/6960a3f6dfc06e00089bf9c7

The redirect rule was conflicting with TanStack Start's SSR routing,
causing ERR_TOO_MANY_REDIRECTS. The trailingSlash: 'never' configuration
in TanStack Router handles client-side navigation correctly.

Co-Authored-By: [email protected] <[email protected]>
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.

get rid of trailing slashes in url to enhance seo

2 participants