Behavior of svg internal links

151 views
Skip to first unread message

A Gloom

unread,
Jun 29, 2019, 1:52:10 AM6/29/19
to TiddlyWiki
An observation on behavior of links to tiddlers that are embedded into svgs (will seem out of context till I post about svg overlays for tiddler images-- still composing that while I play mad coder with other experiments << >>)
I use svg's (for map & diagrams) with links to tiddlers embedded into the svg code such as

<a xlink:href="#tiddler title"> (Deprecated)
<a href="#tiddler title">

-- normally, full or shortened standard urls are used but "#" allows you ro target individual tiddlers inside the wiki

that "#tiddler title"  may cue you into what will result-- a permaview link in the browser address bar.

1- the permaview url in the browser address bar will change with each different svg embedded link
2- if you close the tiddler that gets opened, the embedded svg link will not open it again while the browser address bar contains its permaview url, making it look like that embedded link doesn't work any longer
3- if you refresh the wiki without noticing the permaview url and clearing it, you will be left wondering why an unexpected tiddler displays and not your default start up tiddlers

Any code out there for resetting the browser address bar to non permaview?

Behavior of svg internal links.tid

A Gloom

unread,
Jul 2, 2019, 8:31:47 PM7/2/19
to TiddlyWiki
CORRECTIONS:
permaview changed to permalink

attached tid also corrected-- formatting alao fixed

CORRECTED TEXT:

An observation on behavior of links to tiddlers that are embedded into svgs (will seem out of context till I post about svg overlays for tiddler images-- still composing that while I play mad coder with other experiments << >>)
I use svg's (for map & diagrams) with links to tiddlers embedded into the svg code such as

<a xlink:href="#tiddler title"> (Deprecated)
<a href="#tiddler title">

-- normally, full or shortened standard urls are used but "#" allows you ro target individual tiddlers inside the wiki

that "#tiddler title"  may cue you into what will result-- a permalink link in the browser address bar.

1- the permalink url in the browser address bar will change with each different svg embedded link
2- if you close the tiddler that gets opened, the embedded svg link will not open it again while the browser address bar contains its permalink url, making it look like that embedded link doesn't work any longer
3- if you refresh the wiki without noticing the permalink url and clearing it, you will be left wondering why an unexpected tiddler displays and not your default start up tiddlers
Behavior of svg internal links (corrected).tid

Mohammad

unread,
Jul 3, 2019, 1:48:11 AM7/3/19
to TiddlyWiki
Added to TW-Scripts

Jeremy Ruston

unread,
Jul 3, 2019, 1:15:13 PM7/3/19
to tiddl...@googlegroups.com
Hi A Gloom

Just a thought, but do things work any better when you use Control Panel settings to switch "Navigation Address Bar” to "Include the target tiddler”? I’d expect that subsequent internal navigation would then keep the URL up to date.

Best wishes

Jeremy

--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/896c7ef4-71ad-4356-86d9-00feb74d3baf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<Behavior of svg internal links (corrected).tid>

A Gloom

unread,
Jul 5, 2019, 4:48:27 PM7/5/19
to TiddlyWiki
Jeremy,
 
Just a thought, but do things work any better when you use Control Panel settings to switch "Navigation Address Bar” to "Include the target tiddler”? I’d expect that subsequent internal navigation would then keep the URL up to date.

That works : )   Thank you.  There's so much you guys have built into TW that I'm still not familiar with, I'll probably be learning for yet another year *g*

This method leaves a # at the end of the url after all tiddlers are closed, everything works as expected with refresh so the # is something not to worry about, just a display technicality?

Ste Wilson

unread,
Jul 6, 2019, 3:35:05 AM7/6/19
to TiddlyWiki
Tidgraph has the same behaviour as described above. Maybe I should try changing setting as suggested!

Jeremy Ruston

unread,
Jul 6, 2019, 3:41:29 AM7/6/19
to tiddl...@googlegroups.com
Hi A Gloom

This method leaves a # at the end of the url after all tiddlers are closed, everything works as expected with refresh so the # is something not to worry about, just a display technicality?

That’s correct; a # without any text after it acts as if it wasn’t there.

Best wishes

Jeremy.
Reply all
Reply to author
Forward
0 new messages