How to retrieve the URL that was typed when a user lands on the 404 error page?

I am also looking solution for same. If having any updates please share here
https://www.wix.com/corvid/forum/community-discussion/need-to-read-param-value-from-url-when-page-is-not-found
Thanks