Home
The Toolkit for Online Communities
16682 Community Members, 0 members online, 2361 visitors today
Log In Register
OpenACS Home : Forums : OpenACS Q&A : Getting URL : One Message

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.