You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Correct external URL detection in isExternal using proper URL parsing
6
+
7
+
Replaces substring-based host matching with URL parsing to correctly determine whether a rewritten URL is external.
8
+
This fixes an issue where NextResponse.rewrite() would treat certain external URLs as internal when their pathname contained the host as a substring, causing unexpected 404s during middleware rewrites.
0 commit comments