1
tedsmith
Hyperlinks with Spaces Not Rendering Properly in IE
  • 2004/7/28 9:42

  • tedsmith

  • Home away from home

  • Posts: 1151

  • Since: 2004/6/2 1


Hi everyone

Quick question...

Hyperlinks from an XOOPS module leading to an area on my Windows 2003 Server? If the path has a space in it, is there any way I can configure IE (or IIS?) to deal with the space?

Basically, as it stands, I have a hyperlink like :

\\servername\folder1\folder2\folder with a space\folder4

being rendered in IE as

\\servername\folder1\folder2\folderwithaspace\folder4

and thus getting a 'Page Cannot be Displayed.

We have IIS6, W2&3 Server, XOOPS 2.0.7 using the WF Dowloads module version 2.0.5.a. I have posted a forum question on their site too and I'm sure they will have the answer, but in the meantime I thought I'd check here to save time.

Is it an XOOPS issue? Is it a module issue? Is it an IIS6 issue? Is it a Windows 2003 Server issue?

Any ideas guys (come on - dig deep!!)



2
koertzen
Re: Hyperlinks with Spaces Not Rendering Properly in IE
  • 2004/7/28 9:57

  • koertzen

  • Just popping in

  • Posts: 79

  • Since: 2003/10/22


Have you used %20?

For example
Quote:

\\servername\folder1\folder2\folder%20with%20a%20space\folder4


Spaces do not render well in links and are typically replaced with their URL character equivalent. For others, see the excellent description and tables at this site:

http://www.blooberry.com/indexdot/html/topics/urlencoding.htm


3
tedsmith
Re: Hyperlinks with Spaces Not Rendering Properly in IE
  • 2004/7/28 10:06

  • tedsmith

  • Home away from home

  • Posts: 1151

  • Since: 2004/6/2 1


I hadn't, no, but I have now, and that works a treat - thanks a lot. My only problem with it is that the %20 show up in the actual hyperlink, but I can live with that.

Do you happen to know of a setting in IIS that can deal with spaces though before I go and manually change all of my links?

Cheers mate

4
koertzen
Re: Hyperlinks with Spaces Not Rendering Properly in IE
  • 2004/7/28 10:32

  • koertzen

  • Just popping in

  • Posts: 79

  • Since: 2003/10/22


I don't believe it's a setting in IIS. How specifically are you referencing the hyperlinks?

If, for example, your href links direcly to the UNC link, then that might be the source of the problem.

Incorrect Syntax:
<a href=\\server\share\folder with a space\folder\>

Correct Syntax:
<a href="file://server/share/folder with a space/folder/">

The link SHOULD also work correctly with UNC folder \ instead of /.
In other words:
<a href="file:\\server\share\folder with a space\folder\">

Let me know if either of these correct the problem. I do think, however, that you will have to update all of your links in some way. IE or any browser will automatically put the %20 in anytime there is a space.

In my work environment, I have a personal rule for anyone I'm working with to ALWAYS replace spaces with an Underscore, a hyphen, or to put the words together, usually capitalizing the first letter of every word.

5
koertzen
Re: Hyperlinks with Spaces Not Rendering Properly in IE
  • 2004/7/28 11:03

  • koertzen

  • Just popping in

  • Posts: 79

  • Since: 2003/10/22


See a similar reference on Microsoft's support site athttp://support.microsoft.com/default.aspx?scid=kb;en-us;187034

6
tedsmith
Re: Hyperlinks with Spaces Not Rendering Properly in IE
  • 2004/7/28 12:01

  • tedsmith

  • Home away from home

  • Posts: 1151

  • Since: 2004/6/2 1


Didn't realise there was an option in the module to give a 'Homepage Title' different to the ACTUAL hompage link. So rather than my users seeing \\servername\folder1\folder%20Two etc, They just see 'Home Folder', although I have to ensure I place %20 in the actual link.

Thanks anyway guys.

Login

Who's Online

114 user(s) are online (47 user(s) are browsing Support Forums)


Members: 0


Guests: 114


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits