Skip to content

fixed _profile#13

Open
pnthrr wants to merge 2 commits intotermermc:masterfrom
pnthrr:profile
Open

fixed _profile#13
pnthrr wants to merge 2 commits intotermermc:masterfrom
pnthrr:profile

Conversation

@pnthrr
Copy link
Copy Markdown

@pnthrr pnthrr commented Apr 29, 2026

#12 the issue was that profileRoot on line 18: const profileRoot = makeFileUrl(fsUrl, uuid, username, '/_profile')
is a full URL returned by makeFileUrl but resolved is only the .pathname of a url resolved against window.location.origin thus a pathname like /image.png can never start with a full url from a different origin.
so you have to resolve the path against indexUrl and compare .pathname of profileRoot.

Note: might have used the code highlight thing a bit too much, and yapped too.

another note: this whole check is kinda of lacking and has a lot of issues i would suggest either removing it or doing a lot of fixing

@pnthrr pnthrr marked this pull request as draft April 29, 2026 19:21
@pnthrr pnthrr marked this pull request as ready for review April 29, 2026 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant