Page 1 of 1

is there an issue in links?

Posted: Sun Feb 23, 2025 3:38 pm
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

Re: is there an issue in links?

Posted: Sun Feb 23, 2025 4:46 pm
by Pablo
This may be helpful:
viewtopic.php?t=131

Re: is there an issue in links?

Posted: Sun Feb 23, 2025 4:51 pm
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

Re: is there an issue in links?

Posted: Sun Feb 23, 2025 6:40 pm
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

Re: is there an issue in links?

Posted: Sun Feb 23, 2025 6:49 pm
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

Re: is there an issue in links?

Posted: Sun Feb 23, 2025 8:34 pm
by Pablo
I will investigate if an error can be added for this invalid file name.

Re: is there an issue in links?

Posted: Sun Feb 23, 2025 10:17 pm
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