Name taken from subdomain is more important that from the local file (shown by experience).

This commit is contained in:
Offray Vladimir Luna Cárdenas 2022-10-10 12:58:24 -05:00
parent 110b5460dd
commit 07d55ba3e0

View File

@ -507,10 +507,10 @@ TiddlyWiki >> local: aFileRefence [
TiddlyWiki >> name [ TiddlyWiki >> name [
| tempName suffix | | tempName suffix |
name ifNotNil: [ ^ name ]. name ifNotNil: [ ^ name ].
self file ifNotNil: [ ^ name := self file basenameWithoutExtension ].
self remote ifNil: [ ^ name := nil ]. self remote ifNil: [ ^ name := nil ].
(self remote host endsWith: 'tiddlyhost.com') (self remote host endsWith: 'tiddlyhost.com')
ifTrue: [ ^ name := (self remote host splitOn: '.') first ]. ifTrue: [ ^ name := (self remote host splitOn: '.') first ].
self file ifNotNil: [ ^ name := self file basenameWithoutExtension ].
tempName := self remote file. tempName := self remote file.
(tempName endsWithAnyOf: #('.html' '.htm')) (tempName endsWithAnyOf: #('.html' '.htm'))
ifTrue: [ ifTrue: [