Forum OpenACS Q&A: Re: Getting URL

Collapse
2: Re: Getting URL (response to 1)
Posted by Tilmann Singer on
First of all, try to avoid putting together html in tcl files when possible (yes there are tons of bad examples in the toolkit unfortunately). Rather do it like that:

.tcl:
set some_url "/foo"

.adp:
<a href="@some_url@">Bla</a>

You don't need to specify your servername in a link that refers to a location on the same server. And if your link starts with a slash then it starts to resolve from the server root, so your example '/forums' should actually work, you propably have a typo somewhere.