is there an issue in links?

Issues related to hyperlinks and web site navigation.
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/links.html
Post Reply
alan_sh
 
 
Posts: 1820
Joined: Tue Jan 01, 2019 5:50 pm

is there an issue in links?

Post by alan_sh »

I have an image on a page with a link when you click it. But when I view that link, there's a bit missing off the end.

What I want to link to is (without the quotes):

"D:\alans\SynologyDrive\DPRevived stuff\website\DPRevived Landing Page 20-dev2\DBCF0088-1 (Superlarge).jpg"

What I get is
"D:\alans\SynologyDrive\DPRevived stuff\website\DPRevived Landing Page 20-dev2\DBCF0088-1 (Superlarge"

It doesn't seem to like the close brackets. If I change the file to

"D:\alans\SynologyDrive\DPRevived stuff\website\DPRevived Landing Page 20-dev2\testcolor.jpg"

So, is this a bug or have I done something silly (and I do this all the time).

Here's a simple wbs file that (on my PC) illustrates the issue

https://www.dropbox.com/scl/fi/zaizzwu1 ... u3om5&dl=1

Alan
User avatar
Pablo
 
Posts: 23226
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: is there an issue in links?

Post by Pablo »

This may be helpful:
viewtopic.php?t=131
alan_sh
 
 
Posts: 1820
Joined: Tue Jan 01, 2019 5:50 pm

Re: is there an issue in links?

Post by alan_sh »

Pablo,

It only happens if I have a close bracket at the end. I understand about naming conventions, but the wbs file doesn't have to be published for the error to be seen.

Alan
User avatar
crispy68
 
 
Posts: 2995
Joined: Thu Oct 23, 2014 12:43 am
Location: Acworth, GA
Contact:

Re: is there an issue in links?

Post by crispy68 »

Seems to me you are making it a bit more difficult than it needs to be. Not sure the need to use parenthesis and spaces in file names. However, you need to %-encode the link for it to work.

So in your example file, make your link:

Code: Select all

C:\Users\....\imagefilenameissue\imagefileissue\website\DBCF0061-1_%28SL%29.jpg
by adding: %28 for left parenthesis and %29 for the right.

Seems easier to just give the name of the image a safer name like:

DBCF0088-1-Superlarge.jpg or DBCF0088-1-SL.jpg
alan_sh
 
 
Posts: 1820
Joined: Tue Jan 01, 2019 5:50 pm

Re: is there an issue in links?

Post by alan_sh »

Crispy - thanks. I can rename it - no issues.

I don't understand why WWB won't flag it up as an issue though when I select an invalid file. Plus it appears it's only the link that trucates the filename at the close bracket point - the main filename for the image is OK and works fine when published. The issue with the link name happens without needing to publish the page.

Pablo, Can an error message be added to a future enhancement?

regards

Alan
User avatar
Pablo
 
Posts: 23226
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: is there an issue in links?

Post by Pablo »

I will investigate if an error can be added for this invalid file name.
alan_sh
 
 
Posts: 1820
Joined: Tue Jan 01, 2019 5:50 pm

Re: is there an issue in links?

Post by alan_sh »

Thank you. That will help since I assumed that if the image name was correct (and it was published OK), the link name must be OK as well.

Alan
Post Reply