The handling of semicolons in URLs is not completely consistent, so your best approach is to avoid your URL correctly and unambiguously.
If you intend to set one request parameter xto a value abc;y=pqr;, then the escaped form is correct:
?x=abc%3By%3Dpqr%3B
However, if you plan on individual parameters, then it &will be the best choice for interaction. If you want to indicate xhow abcand yhow pqr, then you must indicate this as:
?x=abc&y=pqr
As you have seen, browser behavior is not predictable with undefined semicolons, so avoid them.
source
share