I have a requirement of adding multiple nested paths in the querystring. For which, im encoding the individual path names and combine those with / (delimiter). If a path contains slash in it, that will be encoded as %2F..However we are not encoding delimiter slash(which is used for spliting the path)
example:
Input1: a->b->c Input 2: path_with_/_slash->d->e
Output: ?q=a/b/c+path_with_%2F_slash/d/e
Note: im creating querystring manually (not using urlsearchparams, as it encodes all the slashed including the separator)
Is it ok to use unencoded slash (used as separator) in query string? Will that create any problem in any of the browsers? Is there a better way to handle this scenario?