Skip to content

Commit 3ce8d18

Browse files
profile: use @id: #this — LOSOS convention
LOSOS's schema-pane hardcodes 'var root = store.get("#this")' (line 78 of panes/schema-pane.js). Setting @id to anything else makes root null, which throws TypeError at line 293 when reading root[key].name and blanks the page. All other LOSOS demos (vcard on losos.org, todos here) use @id: #this — the convention. The Profile pane already hides the @id badge when @id is #this, so the page still looks right. To view a real Solid profile, open with ?uri=https://my.pod/profile#me — shell's findSubject() resolves the fragment and the WebID becomes the active subject. Worth a LOSOS issue separately: schema-pane should use subject.value instead of hardcoding #this. Out of scope here.
1 parent e8aaafa commit 3ce8d18

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

profile/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<script type="application/ld+json">
1919
{
2020
"@context": { "@vocab": "urn:solid:" },
21-
"@id": "https://www.w3.org/People/Berners-Lee/card#i",
21+
"@id": "#this",
2222
"@type": "Person",
2323
"name": "Sir Tim Berners-Lee",
2424
"nick": "timbl",

0 commit comments

Comments
 (0)