fix(start-server-core): redirect misinterpreted protocol-relative URLs#6600
fix(start-server-core): redirect misinterpreted protocol-relative URLs#6600
Conversation
📝 WalkthroughWalkthroughThis PR refactors URL and path handling utilities in router-core by changing Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Comment |
|
View your CI Pipeline Execution ↗ for commit 673f7d1
☁️ Nx Cloud last updated this comment at |
As part of Protocol-relative URL preventions paths starting with
//like//postsis collapsed to a single slash/posts.Currently this collapsed path is treated as the to for navigation and can be problematic in the case of SEO.
This PR ensures that these are now redirected to the collapsed path instead of normal navigation, cleans up some dead code in decodePath and update the tests accordingly.
Summary by CodeRabbit
Bug Fixes
Tests