![](https://secure.gravatar.com/avatar/c5ae4f9aa0d3a9bd5376e92b322c3e50.jpg?s=120&d=mm&r=g)
On Tue, 24 Oct 2006, Wolfgang Schuster wrote:
2006/10/24, Aditya Mahajan
: Hi, What is the best way of typesetting a url from a variable. For example, if I have
\setvariables[test][website=http://www.xyz.com/~abc/first_index.html]
how can I print the url. I tried
\starttext \goto{\getvariable{test}{website}}[URL(\getvariable{test}{website})] \stoptext
but this does not seem to work. Any suggestions?
Aditya
Hi Aditya,
you should look into the log-file and will see it is a problem with the tilde in the url.
I know that the tilde is causing problems, but I do not know how to prevent that.
The following example works fine, tested on the garden with live ConTeXt.
Yes, but in my project, I need to pass the complete website address :-) Aditya
\setvariables[garden][website=http://www.contextgarden.net]
\starttext \goto{\getvariable{garden}{website}}[URL(\getvariable{garden}{website})] \stoptext
Wolfgang
-- Aditya Mahajan, EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam || Ph: 7342624008