enonic / lib-guillotine

Apache License 2.0
3 stars 0 forks source link

Process links with query parameters and fragment #233

Closed anatol-sialitski closed 2 years ago

anatol-sialitski commented 2 years ago

Links like content://<id>?query=<query>&fragment=<fragment> should be correctly resolved.

<query> - encodeuricomponent("key1=value1&key2=value2") - value will be decoded and added to resulting link as query. If decoded string contains any invalid query symbols the entire query will be ignored.

<fragment> - encodeuricomponent("some-fragment") - value will be decoded and added to resulting link as fragment. If decoded string contains any invalid fragment symbols the entire fragment will be ignored.

resulting url will be (based on examples) http://bla-bla-bla?key1=value1&key2=value2#some-fragment