Skip to content

Rewrite based off spec (RFC 1808)

Compare
Choose a tag to compare
@tjenkinson tjenkinson released this 05 Mar 15:43
· 400 commits to main since this release

This should be backwards compatibile with version 1 if the alwaysNormalize option is set to true. This option is required as normalization should only be performed if necessary, according to the spec.

The one exception is a combination like "http://a.com/b/cd?test=1#something" + ";x", which previously incorrectly being resolved as "http://a.com/b/;x", instead of "http://a.com/b/cd;x". To loose the last segment of the path the relative URL should be "./;x".