Hi!
I configured wayfinder to display some weblinks and set &useWeblinkUrl=`0` because I wanted it to use the actual resource alias and not the weblink URL. Though, no matter if I use '0' or '1' it still shows the direct Weblink URL and not my alias. Is there anyway to get around that? For example, right now it shows:
domain.com/path/to/file.zip
I would like it to show:
domain.com/category/resource-alias.zip and then simply send the user to the weblink from that. Is that not possible?
Thanks!
Thanks, that did seem to work to get the correct links. Strangely enough, it gives me a 404 error now instead of the actual web link file :S
Because the web link points to a zip file, I created a Zip content type and created the weblink with the following settings:
Resource Alias: file-name
Content Type: Zip
Content Disposition: Attachment
So, it shows this:
domain.com/category/file-name.zip
Clicking on that generates a 404 error.
I tried switched it to:
Resource Alias: file-name
Content Type: HTML
Content Disposition: Inline
Though with the same result.
Not sure where to go from here, any suggestions? Thanks!
-
☆ A M B ☆
- 24,524 Posts
You should try using static resources. Create a proper content type for zip files (application/zip, binary), and have the path for the static resource be the path to the zip file. The resource settings should be
Resource Type: Static Resource
Content Type: Zip
Content Disposition: Attachment
Clicking on a link to such a resource will cause the usual download dialog to open instead of loading a page.
-
☆ A M B ☆
- 24,524 Posts
Are you sure the resource is published? And the path of the static resource is the correct path to the file?
I can access the file directly fine, so I know the path is correct. When set as a Weblink and using the weblink URL it does download fine on the frontend. I updated it to the correct path when I changed it to a Static Resource as well. I've tested /path/to/file.zip and it works fine, though /resource-alias.zip just sends me to the 404 page. The resource is indeed published. When I View Resource from Manager it sends me the resource alias name.....so resource-alias.zip, just not sure why it won't do the same on the front end. I have another modx install on a separate domain, so I may try a test resource there to see if the same issue exists.