Skip to content

fix: strip first subdomain for portal redirect on signout#16

Merged
UsamaSadiq merged 2 commits into
foss-mainfrom
fix/portal-redirect-strip-subdomain
May 5, 2026
Merged

fix: strip first subdomain for portal redirect on signout#16
UsamaSadiq merged 2 commits into
foss-mainfrom
fix/portal-redirect-strip-subdomain

Conversation

@aznszn
Copy link
Copy Markdown

@aznszn aznszn commented May 5, 2026

Summary

  • Replace hardcoded "moneta." replacement with "" so the regex strips just the leading subdomain
  • app.moneta.askii.aimoneta.askii.ai (works for any deployment domain)

🤖 Generated with Claude Code

aznszn and others added 2 commits May 5, 2026 18:43
Replace hardcoded "moneta." prefix with an empty string so the regex
strips just the leading subdomain (e.g. app.moneta.askii.ai →
moneta.askii.ai) regardless of the deployment domain.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Switch to /^[^.]+\.(?=[^.]*\.[^.]*\.)/ so the subdomain is only
stripped when at least two dot-separated parts remain, preventing
over-stripping on bare domains.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@aznszn aznszn force-pushed the fix/portal-redirect-strip-subdomain branch from 02f6ab7 to 5c0cf38 Compare May 5, 2026 14:16
@UsamaSadiq UsamaSadiq merged commit 84c5cd2 into foss-main May 5, 2026
6 of 8 checks passed
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.

2 participants