Activating this module change the normal link download to specific pattern define in modules.

But, the problem is all the link broken with error of Page not found.

Comments

chromix’s picture

My first thought is to say maybe you need to clear cache, although that's just a first guess. Can you tell me what URLs are now appearing when you try to click on a file link?

parasolx’s picture

hai.. already clear the cache (even my site did't activate the cache function).. still same.

the URL convert into this pattern: http://example.com/file/44/chowkit7.jpeg?redirect=node%2F255

end up with Error 404.

chromix’s picture

I've tried to recreate this on a number of my local sites and I haven't been able to. A few things:

  1. If you remove the ? and everything after it, is the link still broken?
  2. Is your site root "/" or is your site installed in a sub-directory?
  3. When you switch the display formatters back to the non-tracking formatters, do your file links work, or are they still broken?

Thanks for the feedback and I hope I can get this working for you soon!

parasolx’s picture

hi.. sorry for late reply.. since i though d.o will send me the email notification. myb i forgot to set it in my acc profile.

If you remove the ? and everything after it, is the link still broken?
Nope.still same. But it grab my main directory in front of url.

2. Is your site root "/" or is your site installed in a sub-directory?
yes, it is under sub-directory

3. When you switch the display formatters back to the non-tracking formatters, do your file links work, or are they still broken?
it back to normal.

chromix’s picture

Ok good to know. I'm going to go out on a limb and guess that somewhere in my code I'm not taking into account the possibility of the site being in a subdirectory. I'll try creating a test site in a subdirectory to see if I can reproduce the problem. Thanks for the additional feedback!

chromix’s picture

I created a test site in a subdirectory and I was able to see the problems you described. I found a fix that definitely seems to work for me. If it works for you I'll go ahead and create a new release with this patch!

chromix’s picture

Status: Active » Needs review
StatusFileSize
new4.2 KB

Sorry... here's the actual patch.

parasolx’s picture

Status: Needs review » Reviewed & tested by the community

so far, it fixed the problem. i think it should push into new release.

chromix’s picture

Status: Reviewed & tested by the community » Fixed

The new change should be released soon.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.