Login

List of recent documents page opens when opening a file with '#'

Versions: n/a, FAQ number: 186, Old FAQ number: 12405

When I tried opening a file with '#' in the filename, the "List of recent documents" page was opened instead, why?


This is an issue with ASP.NET parsing url strings. If a URL contains a hash sign that is properly encoded (to "%23") ASP.NET will decode it back to '#' with the consequense that everything before the hash will be treated as the request and everything after as a URL-fragment.

This can cause strange effects, an example would be the page with the friendly URL -

http://<site>/Documents/ [^]

to be loaded when the file

http://<site>/Documents/%23test.txt [^]

is requested.

This has been reported to Microsoft as an error.

The resolution for now is to avoid having hash signs in filenames of files that you wish to upload to EPiServer.

EPiTrace logger