#doesn't work: url escaping example in the doc
1 messages · Page 1 of 1 (latest)
When you use a relative link (no leading /) it always appends with /.
So you need to write the full path for the link to.
For example
const location = useLocation();
Link to={location.pathname + ".pdf"}
thx!
that's not quite true, it depends if you have trailing slashes in the current URL
Without trailing slashes it would take you to /reports/pdf