Print Page | Close Window

spaces in links causing bad links...

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=9668
Printed Date: 07 April 2026 at 11:38pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: spaces in links causing bad links...
Posted By: Joeee
Subject: spaces in links causing bad links...
Date Posted: 09 February 2004 at 2:06pm

Hi everyone,

For some reason, spaces are being inserted into long words on my site... it's not really an issue except when people post links, which are almost always long. For example, this line causes problems on my site:

Internet Explorer's Technical Overview (v6) - http://www.microsoft.com/windows/ie/techinfo/overview/defaul t.asp - - http://www.microsoft.com/windows/ie/techinfo/overview/default.asp

There is a space between the l and the t in default.asp which causes it to be a bad link. How do I prevent this???

Thanks!

 




Replies:
Posted By: Joeee
Date Posted: 09 February 2004 at 2:07pm

P.S. It doesn't happen on your site, so I'm doing something wrong.

here's what it looks like on my site:

Internet Explorer's Technical Overview (v6) - http://www.microsoft.com/windows/ie/techinfo/overview/default.asp - http://www.microsoft.com/windows/ie/techinfo/overview/defaul t.asp



Posted By: Joeee
Date Posted: 09 February 2004 at 5:20pm

I did search the site for keywords: spaces links and that type of thing and found nothing. Please help! if this question has been answered before, just point me to the right place.

Thanks!



Posted By: Phat
Date Posted: 09 February 2004 at 10:32pm
I think i read some thing the other day about this being an issue with asp or IE. I think it has to do with the length of the URL.

Borg had an answer.



Posted By: WebWiz-Bruce
Date Posted: 10 February 2004 at 6:03am
So that long words, links, etc. are word wrapped and don't mess up the formatting of the page they are split at the 60th character.

However, the actual HTML for the link should not be split. If this is happening on your forum try reuploading the files in the functions folder again as the HTML for the link should not be broken.

Like on this site, the secound link you posted is displayed with a space in it, but when clicked on the HTML for the link is not.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Joeee
Date Posted: 10 February 2004 at 2:03pm

Is there any way to automatically recognize that we're dealing with a link and not break it? Since it sounds like you've thought a lot about this issue boRg, is this a good idea? Maybe something like the above would be turned into the following automatically?:

Internet Explorer's Technical Overview (v6) - http://www.microsoft.com/ - - http://www.microsoft.com/

but, still link to the original:

http://www.microsoft.com/ - - http://www.microsoft.com/windows/ie/techinfo/overview/default.asp - http://www.microsoft.com/ windows/ie/techinfo/overview/default.asp

Is that a good idea? Thanks!

Andy 



Posted By: Joeee
Date Posted: 10 February 2004 at 2:05pm
P.S. This problem is only with the basic post editor... which is what I default my users to. There's no actual linking involved. Just people posting text like so:

Internet Explorer's Technical Overview (v6) - http://www.microsoft.com/windows/ie/techinfo/overview/defaul t.asp

Then, when the user cuts and pastes this link, they get the error.

Thanks



Posted By: WebWiz-Bruce
Date Posted: 10 February 2004 at 6:02pm
It will happen with text links as above as these are not HTML links so can't be indentified.

You could always increase where strings are split by changing the value in the file:-

Line 564 of the file functions_filters.asp that reads:-

Const intMaxWordLength = 60

Change 60 to a higher number, or get your users to use the URL button to make the text link into a proper HTML link.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Joeee
Date Posted: 10 February 2004 at 6:11pm
Perfect timing! I was just testing that intMaxWordLength change, having come accross the topic of a couple years ago where you implemented this feature in the first place... Doesn't seem to cause any problems on my end. 120 chars doesn't seem unreasonable. What's the worst that could happen?

Thanks!



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net