Good day
I wanted to have a general URL to access the Desktop of the local machine for every local user, but when I put this link into the shared HTML page:
href="file://%userprofile%\Desktop"
the URL that appears on the browser is:
file://%25userprofile%25\Desktop
How to remove that '25' so every local user can access his/her Desktop?
Thank you very much
%
is a special character on the URL - it is used to encode special characters, giving their HEX ASCII value as result.
Hence, in order to pass a %
on the URL, you need to encode it - this results in %25
- the browser is doing the right think and you don't need to do anything.
I am not sure the browser can interpret local environment variables, by the way - it may also not have direct access to the user desktop.
Use %25 without space. it will show the percent symbol in the url.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With