educative.io

Educative

URL-encoded URL issue in Encoding actual URL approach

URL-encoded URL issue in Encoding actual URL approach

  1. What if parts of the URL are URL-encoded? e.g., “http://www.educative.io/distributed.php?id=design”, and “http://www.educative.io/distributed.php%3Fid%3Ddesign” are identical except for the URL encoding.

For this potential issue of Encoding actual URL, can we just simply resolve it with encode every URL so every URL can be identical? In this way, hash can be consistent across URLs that are not URL-encoded and URL-encoded. How can appending user id or sequence get round this issue?