Skip to content

fix: properly check if link is in scope of app#1037

Open
amycatgirl wants to merge 2 commits intostoatchat:mainfrom
amycatgirl:fix/links-to-stoat-domain-workaround
Open

fix: properly check if link is in scope of app#1037
amycatgirl wants to merge 2 commits intostoatchat:mainfrom
amycatgirl:fix/links-to-stoat-domain-workaround

Conversation

@amycatgirl
Copy link
Copy Markdown
Contributor

supersedes #737 because i completely fucked up the branch lol

also takes into account the review inside of the previous PR

Signed-off-by: Amy <amy+git@amogus.cloud>
@amycatgirl amycatgirl requested a review from a team as a code owner March 17, 2026 18:27
@ThomasJRyan ThomasJRyan requested review from a team and removed request for a team March 17, 2026 18:58
@Pecacheu
Copy link
Copy Markdown
Contributor

Not sure if a hard-coded list of endpoints like that is the ideal way to detect it, since it will have to be updated if we add any more in the future, but it'll definitely do for now to solve the issue.

@Pecacheu
Copy link
Copy Markdown
Contributor

Also if/when this gets merged I will integrate it into #999 because checking the scope of links is important there. Though in that PR it will require a small change of adding the URL of the current instance (if not Stoat) to the list. Currently that is not necessary because the instance can be assumed to be Stoat unless someone rebuilds the client.

Pecacheu added a commit to Pecacheu/for-web that referenced this pull request Mar 29, 2026
- Support cross-instance channel/server/invite links (Builds on work in stoatchat#1037)
- Auto-redirect to appropriate instance as needed, logging into most recent saved account on instance
- Fix regex for paramsFromPathname to support instance prefix
- Fix annoying draft console logging

Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
Pecacheu added a commit to Pecacheu/for-web that referenced this pull request Mar 31, 2026
- Support cross-instance channel/server/invite links (Builds on work in stoatchat#1037)
- Auto-redirect to appropriate instance as needed, logging into most recent saved account on instance
- Fix regex for paramsFromPathname to support instance prefix
- Fix annoying draft console logging

Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
Pecacheu added a commit to Pecacheu/for-web that referenced this pull request Apr 12, 2026
- Support cross-instance channel/server/invite links (Builds on work in stoatchat#1037)
- Auto-redirect to appropriate instance as needed, logging into most recent saved account on instance
- Fix regex for paramsFromPathname to support instance prefix
- Fix annoying draft console logging

Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
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.

5 participants