Fog Creek Software
Discussion Board




Knowledge Base
Documentation
Terry's Tips
Darren's Tips

Issue: Link containing variable contains temp path

CityDesk Version: 1.0.31

For tweakability purposes, I have created a variable which points to an external site. 

Steps to reproduce:
1) Add a variable named "SiteRoot" with the value "http://foobar/".

2) Create a new article.

3) Select Menu Insert, Link...

4) Replace the default "External URL" by:
{$.SiteRoot$}somepage.html

5) Select Insert.

Result: a link is visible with the following text: {$.SiteRoot$}somepage.html
This is expected.

6) Select the added Link.

7) Select Menu Insert, Link...

Expected result:
- The link value is "{$.SiteRoot$}somepage.html"

Actual result:
- The link value is "file://C:\DOCUME~1\username\LOCALS~1\Temp\CityDeskExternal_3072\{$.SiteRoot$}somepage.html"

The path to the current temporary directory has been inserted at the start of the URL.

Bernard Vander Beken
Tuesday, February 11, 2003

Probably related to:
http://www.fogcreek.com/CityDesk/kb/fog0000000063.html

Michael H. Pryor
Tuesday, February 11, 2003

I've noticed this too. You have to be very careful if you ever re-edit these sorts of links.

I think it happens because the link doesn't have a "http:" or "file:" or "mailto:" at the start of it, so CityDesk assumes it's a file in the current temp directory.

If you change your SiteRoot variable to be "www.foobar.com/" and add the link as "http://{$SiteRoot$}somepage.html", the link doesn't seem to get mashed up next time you edit it.

Darren Collins
Tuesday, February 11, 2003

Michael,

The KB did not seem the contain the solution.

My DLL/OCX version is 6.1.0.9102 (for DHTMLED.OCX and TRIEDIT.DLL). 

This version corresponds to the one shipped with IE6.0, which makes sense on my system.

After reregistering these components and restarting CityDesk, the problem remained.

Bernard Vander Beken
Tuesday, February 11, 2003

Thanks Darren,

Your workaround works as described, although I noticed the variable name in the URL is converted to lowercase.

Example: {$.SiteRoot$} -> {$.siteroot$}

Bernard Vander Beken
Tuesday, February 11, 2003

Weird, but as long as it works!

Darren Collins
Wednesday, February 12, 2003

*  Recent Topics

*  Fog Creek Home