Problem: URLs being truncated & broken in Hesk KB Articles

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
Lisaweb
Posts: 94
Joined: Sun Sep 25, 2011 3:23 pm

Problem: URLs being truncated & broken in Hesk KB Articles

Post 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.
- Lisa
Lisaweb
Posts: 94
Joined: Sun Sep 25, 2011 3:23 pm

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

Post 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.
- Lisa
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

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

Post by Klemen »

This must be a bug in the WYSIWYG Javascript interface (TinyMCE), will see if I can locate it and contact the developers.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Lisaweb
Posts: 94
Joined: Sun Sep 25, 2011 3:23 pm

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

Post by Lisaweb »

Thanks Klemen!
- Lisa
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

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

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Lisaweb
Posts: 94
Joined: Sun Sep 25, 2011 3:23 pm

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

Post by Lisaweb »

Thanks Klemen, worked perfect! :-)
- Lisa
Post Reply