preact-router
preact-router copied to clipboard
Tiny relative links solution
trafficstars
Just an alternative thought for #138. This only handles the case of relative links in an HTML document - it doesn't account for route('./foo'). Perhaps they are worth treating separately given the different in implementation complexity. This PR actually drops the lib size by a few bytes.
I believe this needs to steal from the other relative links PR to enable route('./foo')
Does Preact currently support relative URLs? If not, is there a suggested solution to adding query parameters to a current history entry?