• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Simple HTML linking question - IExplorer Vs Firefox

gotensan01

Golden Member
When creating a simple HTML link to another page, I use something like the following:

<a href="http:\\something.com">LINK</a>

Well, the problem is that Firefox uses '/'s instead of '\'s. How do I solve this problem?
 
You should always be able to use / as opposed to \. The forward slash (/) is UNC standard. The backslash (\) is handled by Windows because it has a history of constructing paths with a backslash. Just use forward slash for everything.
 
Originally posted by: Markbnj
You should always be able to use / as opposed to \. The forward slash (/) is UNC standard. The backslash (\) is handled by Windows because it has a history of constructing paths with a backslash. Just use forward slash for everything.

When the link is created using '\'s, it doesn't work on Firefox.

Let's imagine that the default webpage is "http:\\default.com\"

If the link is "http:\\default.com\forums", then Firefox tries to go to "http://default.com/%5C%5Cdmkguild.com"

It's reading hte '\' as the hex value or something.


EDIT: When I just type "http:\\something.com" into the URL bar in Firefox, Firefox automatically changes it to "http://something.com"
 
Look, maybe I can make it clearer: the forward slash is the _default way of constructing UNC paths to web pages_. You don't need to use a backslash, ever. Not on IE, or any other system.

However, on Windows you _may_ use a backslash and get away with it, but why would you?

Bottom line: construct all your web paths using forward slashes.
 
I always thought http:// was the correct method....... c:\ was used in dos or for defining window's file paths......
 
Originally posted by: Markbnj
Look, maybe I can make it clearer: the forward slash is the _default way of constructing UNC paths to web pages_. You don't need to use a backslash, ever. Not on IE, or any other system.

However, on Windows you _may_ use a backslash and get away with it, but why would you?

Bottom line: construct all your web paths using forward slashes.

Thanks 😀
 
always thought http:// was the correct method....... c:\ was used in dos or for defining window's file paths......

That's correct, except that in Windows there is no longer a real difference between UNC paths and file paths. Try this: open up a command window on c: and enter:

cd windows/system32

It will work fine, but the command processor will replace your / with a \ when it displays the current directory.
 
Not exactly. The command processor parses the UNC paths just fine. It's the native format for accessing shares on the network as well. When it displays the current dir back to you it gets converted back to DOS standard.
 
Back
Top