Does rel-router support relative links?
I am at this URL:
/path1/path2
Then:
<Link to="path2/path3" />
Using this code, the address in the address bar changes to:
/path1/path2/path3
It seems that it worked: he went to the last one /and added a new path to it. But in fact, although it changes the URL in the address bar, navigation does not occur.
Does it look like links should have absolute urls?
+4
user911625
source
share4 answers
. react-router-relative-links. , .
, :
{ RelativeLink } = require 'react-router-relative-links'
...
<RelativeLink to="./path3">My link text</RelativeLink>
+3