- 
                Notifications
    
You must be signed in to change notification settings  - Fork 2.7k
 
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
What version of Remix are you using?
1.12.0
Are all your remix dependencies & dev-dependencies using the same version?
- Yes
 
Steps to Reproduce
- Add this code to a page 
<Link to="//">...</Link> - Open the page in the browser
 
Same problem with some other values of to for example "http://", so I think this should be fixed by wrapping new URL() into a try..catch rather than checking for known fail cases.
Expected Behavior
Page doesn't crash, instead <a href="//">...</a> is rendered
Actual Behavior
The page crashes with a error Failed to construct 'URL': Invalid URL
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
