One way you could do this is by defining a macro:

\define myServerUrl(path)
http://my.serve.rs/url$path$
\end

And then later in the same tiddler you can do things like this:

<a href=<<myServerUrl "/view?what=colleagues">>>Link text</a>

Best wishes

Jeremy




On Thu, Oct 24, 2013 at 6:47 AM, Stephan Hradek <[email protected]>wrote:

> I want to link to different parts of a webserver, so I thought I create a
> tiddler:
>
> [[MyServersURL]]
> http://my.serve.rs/url
>
> And then reuse it like this (totally made up example)
> [[My use case]]
> |!Login |{{MyServersURL}}/login |
> |!View |{{MyServersURL}}/view |
> |!Colleagues |{{MyServersURL}}/view?what=colleagues |
>
> Of course this renders as
>
> *http://my.serve.rs/url*/view?what=colleagues
>
> and not as
>
> *http://my.serve.rs/url/view?what=colleagues*
>
> So I tried
>
> [[{{MyServersURL}}/view?what=colleagues]]
>
> But this comes out as
>
> {{MyServersURL}}/view?what=colleagues
>
> So I'm wondering: How could I achieve to have the base url been defined in
> just one place?
>
> --
> You received this message because you are subscribed to the Google Groups
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/tiddlywiki.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Jeremy Ruston
mailto:[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to