Page 1 of 1

Problem: URLs being truncated & broken in Hesk KB Articles

Posted: Wed Oct 05, 2011 1:04 pm
by Lisaweb
Version of script: 2.3
Hosting company: Servint
What terms did you try when SEARCHING for a solution: changes urls, changes links, urls truncated
Write your message below:

I am running into a problem when creating links in KB Articles that refer back to the Ticket system (other URLs work just fine).

For instance, in an article I have the following message:
If you are unable to find your ticket, you may look it up by filling the required information here: Lookup Existing Ticket.

When I go to insert the link using the formatting bar, and I insert the full URL to that page, Hesk truncates the URL.

For example: If I enter: https://mywebsite.com/helpdesk/ticket.php
it truncates it to:
../ticket.php

and this link is broken. Instead of going to https://mywebsite.com/helpdesk/ticket.php, it points to https://mywebsite.com/ticket.php

How can I stop it from doing this?

Thanks.

Re: Problem: URLs being truncated & broken in Hesk KB Articl

Posted: Wed Oct 05, 2011 1:17 pm
by Lisaweb
Well I was finally able to get it to work by entering just "ticket.php" (the page name without any path) into the Link URL field.

But this is definitely a bug, that it truncates the full URL to "../ticket.php" when it needs to be "ticket.php" in order to work.

Re: Problem: URLs being truncated & broken in Hesk KB Articl

Posted: Wed Oct 05, 2011 3:18 pm
by Klemen
This must be a bug in the WYSIWYG Javascript interface (TinyMCE), will see if I can locate it and contact the developers.

Re: Problem: URLs being truncated & broken in Hesk KB Articl

Posted: Thu Oct 06, 2011 2:05 pm
by Lisaweb
Thanks Klemen!

Re: Problem: URLs being truncated & broken in Hesk KB Articl

Posted: Fri Oct 07, 2011 4:12 pm
by Klemen
Got it - in admin/manage_knowledgebase.php find

Code: Select all

theme : "advanced",
and just below this code paste

Code: Select all

convert_urls : false, 
You need to do this twice in the file!

Save, upload, refresh in browser and problem should be fixed.

Re: Problem: URLs being truncated & broken in Hesk KB Articl

Posted: Fri Oct 07, 2011 6:26 pm
by Lisaweb
Thanks Klemen, worked perfect! :-)