Gossamer Forum
Home : Products : Others : Fileman :

directory links to host rather than host.domain?

Quote Reply
directory links to host rather than host.domain?
If I click on the ICON for a directory, I go to that directory. (http://hostname.domainname/directory)

If I click on the linked NAME of the directory, I got to the hostname (http://hostname/directory).

<a href="$url/$file"> does not seem to work, whereas <a href="$newdir"> does. Oddly enough, this isn't true for files - I can click on either the file name or the icon. Both use <a href="$url/$file">.

So, I guess it's a problem with how $url is defined for a directory. Weird thing is, when I hold the mouse over the filename, the correct URL appears in my browser. It's when I click on it that it doesn't go there....

I think $url is set globally for the current display, so it should be the same for a file as it is for a directory.

If I view source on the page, it looks like cgi-bin/fileman.cgi?wd=directoryname is working, but the directory link (host.domain/directoryname) is not.

The link to chdir works correctly, which also uses fileman.cgi?wd=directoryname.

I changed $url/$file to $newdir. Now it works correctly, but I don't understand why this wasn't working for me before.