Closed
Bug 278107
Opened 20 years ago
Closed 20 years ago
file://// URIs do not work when BASE HREF specified
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 145421
People
(Reporter: ade, Assigned: bugzilla)
Details
Put the following HTML into a file. <head> <base href="http://www.mozilla.org/"> </head> <body> <a href="file://///my-smb-server/my-smb-share/my-folder">test</a> </body> Open that in FireFox. Click the link. It does not work. Then remove the base href line, and try again. It works. (Either it really displays that directory, or, if the server doesn't exist, you'll get a message saying so).
Comment 1•20 years ago
|
||
see http://www.w3.org/TR/REC-html40/struct/links.html#h-12.4 what is <a href="file://///my-smb-server/my-smb-share/my-folder">test</a> supposed to ref to , the drive letter is missing?
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
| Reporter | ||
Comment 2•20 years ago
|
||
Sorry, a bit more detail necessary :-) That's supposed to refer to a UNC path (Windows SMB server), i.e. \\my-smb-server\my-smb- share\my-folder. There is no entirely standard way of describing a UNC path within a file: URI (depressingly). The nicest way would seem to be: file://my-smb-server/my-smb-share/my-folder but as far as I know that doesn't work in IE or Firefox. Instead, the de-facto standard seems to be: file://///my-smb-server/my-smb-share/my-folder which can be written alternatively as file:///\\my-smb-server\my-smb-share\my-folder The reason this is supposed to work is that the first two slashes denote the host, which is empty, then there's a slash denoting the root of the drive hierarchy. Then we go into Windows pathnames, i.e. \\ to denote a UNC path. Note that it DOES work fine without a BASE HREF specified. Note also that the issue of the particular syntax should be beyond the scope of this bug, as it's discussed in various others.
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
Looks like Bug 145421.
| Reporter | ||
Comment 4•20 years ago
|
||
*** This bug has been marked as a duplicate of 145421 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago → 20 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•