Hi Walt,

I am glad it solved the first problem.

Ad #2: You are right, permalinks created *earlier *are not affected by this 
solution. However, if you *now *rename the SolutionToProblemOfLinkRot 
tiddler to ProblemOfLinkRot and click the permalink button, then 
both #:[contains:permalink[*solutiontoproblemoflinkrot*-20210505114349833]] 
(old) and #:[contains:permalink[*problemoflinkrot*-20210505114349833]] 
(new) will work

I think it will be very difficult to solve #2 in a general way that ensures 
that links already shared will keep working forever. It may be possible 
(but I don't know how) to make a solution to search in the permalink field 
if the tiddler couldn't be found (eg. /#ProblemOfLinkRot -> look for 
problemoflinkrot in the permalink fields -> list all potential hits). But 
if you later make a new tiddler called ProblemOfLinkRot, then the old link 
will give you the new one

Best,
Anders

onsdag 5. mai 2021 kl. 21:01:01 UTC+2 skrev ludwa6:

> Correction to my last: dunno what caused the phenom i reported as #1 
> above, but i can no longer replicate that error; the new URL works fine.
> However: problem #2 reported above persists -and so my question about a 
> potentially simpler solution to this two-headed problem stands.
>
> /walt
>
> On Wednesday, May 5, 2021 at 7:38:32 PM UTC+1 ludwa6 wrote:
>
>> Your spec ticks all the boxes, Anders... So i installed it, but not 
>> getting the hoped-for result, alas.
>>
>> *What i did:* Changed URL on the "ProblemOfLinkRot" tiddler to 
>> "SolutionToProblemOfLinkRot"; selected (modified) Permalink button in 
>> pulldown tiddler menu -and it copied the composite URL, composed per your 
>> specification, to my clipboard, which is also populating the new 
>> "Permalink" field, i see.  So far so good... But there is yet a problem 
>> -two actually:
>>
>>    1. When i point my browser to the new URL- 
>>    
>> https://meta.tiddlyhost.com/#:[contains:permalink[solutiontoproblemoflinkrot-20210505114349833]]
>>  
>>    - it pulls a blank page.
>>    2. The old permalink-  https://meta.tiddlyhost.com/#ProblemOfLinkRot 
>>    -brings me to a "Missing Tiddler" page (not surprising, since a tiddler 
>>    with that name indeed exists no more, having been overwritten by the 
>> new... 
>>    And that old URL has no "contains" parameter in it).
>>
>> I hadn't really thought of this problem in terms of having two different 
>> URLs pointing to the same tiddler; instead, i was hoping that a UID could 
>> be assigned on tiddler creation (ideally a not-too-weird combo-key: 
>> original name (guaranteed unique at the time, as you say) plus date would 
>> work), which persists across any renaming event in the Permalink field, but 
>> is not the title.  Is there some problem w/ this simpler solution that i'm 
>> not seeing?
>>
>> /walt
>>
>>
>>
>> On Wednesday, May 5, 2021 at 5:12:15 PM UTC+1 Anjar wrote:
>>
>>> Hi,
>>>
>>> Here is a demo for a new permalink button. It creates a new field called 
>>> permalink and inserts <slugified title>-<created>. Since the title is 
>>> unique at creation, this string should be unique (?). Further, it copies 
>>> the appropriate link to the clipboard; 
>>> https://tiddlywiki.com/#:[contains:permalink[new-tiddler-20200509141702846]].
>>>  
>>> If you change the title, the button appends the new <slugified 
>>> title>-<created> to the permalink field so that both links go to the same 
>>> tiddler
>>>
>>> Best,
>>> Anders
>>>
>>>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/1e1b10fe-0fa7-4aa2-b5af-a9161d2e2f4en%40googlegroups.com.

Reply via email to