help with permalinks

95 views
Skip to first unread message

Valikhanov

unread,
Jun 12, 2011, 1:07:34 PM6/12/11
to TiddlyWiki
Is there a way to make permalinks work properly?

If I cut and paste a permalink into the Firefox address bar, it works
great - i.e. it opens the Tiddly and loads the specific tiddler I am
interested in. However, in practice, whenever I link to it from
another program - be it email, OneNote, or even a separate Tiddly - it
opens the Tiddly from its base start page, not the tiddler I want.

Solutions? It would be really nice to be able to link between
Tiddlies and programs.

Sub

unread,
Jun 12, 2011, 1:21:54 PM6/12/11
to TiddlyWiki
Unfortunatly it only works with CameCaseTitles

Valikhanov

unread,
Jun 12, 2011, 1:24:22 PM6/12/11
to TiddlyWiki
What does "CameCaseTitles" mean?

Sub

unread,
Jun 12, 2011, 1:25:36 PM6/12/11
to TiddlyWiki

Valikhanov

unread,
Jun 12, 2011, 1:33:50 PM6/12/11
to TiddlyWiki
Ugh. So this means that there is no workaround? I.e. if I have been
titling my tiddlers without CamelCase for the past three years then I
am basically out of luck?

Sub

unread,
Jun 12, 2011, 1:42:28 PM6/12/11
to TiddlyWiki
By TiddlyWiki default: yes. I hope someone posts a hack solution as I
have the same problem as you described.

Eric Shulman

unread,
Jun 12, 2011, 3:32:15 PM6/12/11
to TiddlyWiki
The TWCore permaview syntax *does* permit use of tiddler titles with
spaces. As with other TW uses, simply enclose the title in doubled
square-brackets:

http://..../path/filename.html#[[Title with spaces]]

HOWEVER:

Although you can enter the above URL into most browser's and it will
be properly handled by that browser, it isn't actually a valid URL,
because some of the special characters must be "URL-encoded" first,
like this:

http://..../path/filename.html#%5B%5BTitle%20with%20spaces%5D%5D

where %5B="[", %5D="]", and %20=" " (space)

Unfortunately, this encoding is not automatically applied by some
browsers. In FireFox, for example, when you permalink a tiddler, the
location field shows an *unencoded* URL as above:
http://..../path/filename.html#[[Title with spaces]]

But... if you then copy/paste that URL, the result is *partially* URL-
encoded (the square brackets are left unchanged!):
http://..../path/filename.html#[[Title%20with%20spaces]]

Fortunately, for most purposes, this is fine. You can paste the URL
into some browsers and it will open the document with the specified
tiddler displayed. However, if you paste that URL into email or
another application that *parses* text to identify and automatically
link URLs, then the above URL is *broken*, because the parser logic in
some apps doesn't recognize the un-encoded brackets, and ignores that
part of the URL. As a result, only the part up to the "#" is seen by
the browser, and thus the document is opened with the DefaultTiddlers
shown rather than the specified tiddler title.

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
----------
Was this answer useful? If so, please help support TiddlyTools:

TiddlyTools direct contributions: (paypal)
http://www.TiddlyTools.com/#Donate
UnaMesa tax-deductible contributions:
http://about.unamesa.org/Participate (paypal)
TiddlyWiki consulting:
http://www.TiddlyTools.com/#ELSDesignStudios
http://www.TiddlyTools.com/#Contact

Sub

unread,
Jun 12, 2011, 3:51:32 PM6/12/11
to TiddlyWiki
Thanks for the explaination Eric. So as said, it's not really working.

Out of curiosity: Can't javascript grab URL parameters*? Wouldn't this
work
http://..../path/filename.html?open=Title%20with%20spaces
when TW grabs the open parameter and treats it like as if a [[[Title
with spaces]] link inside TW content was clicked? If so, the permalink
in the toolbar could easily link to
http://..../path/filename.html?open=Title%20with%20spaces instead of
file:///D:/word/TiddlyWiki/wiki.html#[[New%20Tiddler]]

* http://www.netlobo.com/url_query_string_javascript.html

Sub

unread,
Jun 12, 2011, 3:52:47 PM6/12/11
to TiddlyWiki
Edit: instead of
http://..../path/filename.html#[[Title with spaces]]

On Jun 12, 9:51 pm, Sub <subfa...@googlemail.com> wrote:
> Thanks for the explaination Eric. So as said, it's not really working.
>
> Out of curiosity: Can't javascript grab URL parameters*? Wouldn't this
> workhttp://..../path/filename.html?open=Title%20with%20spaces
> when TW grabs the open parameter and treats it like as if a [[[Title
> with spaces]] link inside TW content was clicked? If so, the permalink
> in the toolbar could easily link tohttp://..../path/filename.html?open=Title%20with%20spacesinstead of

PMario

unread,
Jun 13, 2011, 11:59:45 AM6/13/11
to TiddlyWiki
With FF I use a little "trick"
If you press the permalink button at a tiddler eg: "New Tiddler" the
TW function actually works right but FF automatically converts the
%5B..[ and %5D..]

If you open the browser history <ctrl><h> you can drag and drop the
"right" link into a textarea.

hope this helps
-m

Tobias Beer

unread,
Jun 14, 2011, 5:21:42 AM6/14/11
to TiddlyWiki
On 13 Jun., 17:59, PMario <pmari...@gmail.com> wrote:
> If you open the browser history <ctrl><h> you can drag and drop the
> "right" link into a textarea.

That's a neat little piece of advice and renders that little script I
was using completely obsolete. Nice.

Cheers, Tobias.

Kim Skatun

unread,
Dec 10, 2012, 8:06:35 AM12/10/12
to tiddl...@googlegroups.com
Maybe a bit of thread here, but how can i get permaview to always be on by default?
Reply all
Reply to author
Forward
0 new messages