Name taken from subdomain is more important that from the local file (shown by experience).
This commit is contained in:
parent
110b5460dd
commit
07d55ba3e0
@ -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: [
|
||||||
|
Loading…
Reference in New Issue
Block a user