Expand my Community achievements bar.

Spaces in file names?

Avatar

Level 1

We're experiencing file issues on our site where users click on a hyperlinked file and instead of the pdf opening, they are routed back to our homepage. In some instances, it seems to be related to spaces in file names. Has there been a recent change where spaces in file names would cause users to be re-directed once clicked on? We've never run into this issue before. The only unifying factor is that this seems to be happening specifically to users who are off our network (not VPN'd in) at the time they click on the link. 

2 Replies

Avatar

Employee Advisor

The common space character is encoded as %20.  For example, If you are uploading "N  9.pdf" with 2 spaces between N and 9. It will be rendered as "/content/dam/N%20%209.pdf"

 

So, you should check if you have any redirects implemented at AEM/Apache level for %20 in the URL.

Avatar

Community Advisor
Good one jbrar. Possibly the Apache rewrite rules does not allow such patterns.