Hi 张雷,
with a relative path the browser is going to use the location of the 
webpage as the starting point for relative url so it appends a.pdf to 
http://localhost:8181 <http://localhost:8181/a.pdf> - to form 
http://localhost:8181 <http://localhost:8181/a.pdf>/a.pdf. which means that 
when you click the link to send a 'get' to the tiddlywiki-node processes 
(at http://localhost:8181 <http://localhost:8181/a.pdf>), but tiddlywiki on 
nodejs is not a webserver so this fails.

cheers

BJ

On Wednesday, January 7, 2015 at 8:19:34 PM UTC-6, 张雷 wrote:
>
> I am trying to add external link for file in tiddlywiki. I found the 
> `[ext[relative/path]]` method.
> But what's the relative path? 
>
> For example 
>
> My tiddlywiki is set up by using `node /usr/local/bin/tiddlywiki 
> /home/jeffrey/Dropbox/wiki/personal --server 8181`
>
> [ext[a.pdf]]
>  
> it will render like below as expected.
>
> <a class="tc-tiddlylink-external" href="a.pdf" target="_blank">a.pdf</a>
>
> But when click the link. The browser will open `
> http://localhost:8181/a.pdf` with nothing.
>
> I think it should work if there is a file locate in 
> /home/jeffrey/Dropbox/wiki/personal/ 
> or /home/jeffrey/Dropbox/wiki/personal/tiddllers/.
> But I am failed. 
>
> Is it possible?
>
>

-- 
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/d/optout.

Reply via email to