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
Is the intended behavior for Link absolute paths to not respect the Router basepath prop? The following example does not have working links: https://codesandbox.io/s/vv3q3v9yo0
importReactfrom"react";importReactDOMfrom"react-dom";import{Router,Link}from"@reach/router";import"./styles.css";constApp=()=>(<Routerbasepath="/apple"><Pagepath="/"><HomePagepath="/"/><OtherPagepath="/other"/></Page></Router>);constPage=({ children })=>(<div><ul><li><Linkto="/">Home</Link></li><li><Linkto="/other">Other</Link></li></ul><hr/>{children}</div>);constHomePage=()=><h1>Home Page</h1>;constOtherPage=()=><h1>Other Page</h1>;constrootElement=document.getElementById("root");ReactDOM.render(<App/>,rootElement);
If I change the Links to relative links then they respect the basepath prop.
Hi all,
I think this issue can be set as a duplicate from #78.
You should take a look on it, there is a workaround there ... not perfect, but it works ... in a way =)
Is the intended behavior for
Link
absolute paths to not respect theRouter
basepath prop? The following example does not have working links:https://codesandbox.io/s/vv3q3v9yo0
If I change the Links to relative links then they respect the basepath prop.
The text was updated successfully, but these errors were encountered: