Hi,
I noticed that an input URL with a hash fragment (e.g. https://example.com/?key1=val1#target) ends up with the fragment being lumped in with the query parameter value (e.g. key1 = val1#target).
The result is that the final URL might lose the hash fragment if that key is excluded.
I ran a test like this:
const mockData = {
urlInput: "https://www.example.com?key1=val1#fragment",
outputResult: "url",
paramInputChoice: "paramExclude",
queryParamTable: [
{
queryParam: "key1"
}
]
};
let variableResult = runCode(mockData);
assertThat(variableResult).isEqualTo("https://www.example.com/#fragment");
Hi,
I noticed that an input URL with a hash fragment (e.g. https://example.com/?key1=val1#target) ends up with the fragment being lumped in with the query parameter value (e.g. key1 = val1#target).
The result is that the final URL might lose the hash fragment if that key is excluded.
I ran a test like this: