Skip to content

fix(mail): link customer credentials to /customer-access/{slug} - #354

Merged
roncodes merged 1 commit into
release/v0.6.72from
fix/customer-credentials-portal-link
Oct 7, 2026
Merged

roncodes merged 1 commit into
release/v0.6.72from
fix/customer-credentials-portal-link

Conversation

@roncodes

@roncodes roncodes commented Oct 6, 2026

Copy link
Copy Markdown
Member

Summary

CustomerCredentialsMail emailed Utils::consoleUrl($accessUrlSlug), which produces https://<console>/{slug}. The customer portal only resolves a company's access slug at /customer-access/{slug}: its application:before-model hook matches that path, and the admin settings URL field displays it. So the link in the credentials email led to an unrouted console page.

The link is now /customer-access/{slug}. If the company has no slug configured, it still falls back to /customer-portal, the engine's mount path and the portal's sign-in.

Related: fleetbase/customer-portal#22 (settings authorization, account scoping and slug-collision fixes in the portal itself).

Tests

  • The existing "reads the portal slug from the customer company regardless of session" case now asserts https://console.fleetbase.test/customer-access/acme-portal.
  • The fallback case still asserts /customer-portal.

The customer portal resolves a company's access slug only under
/customer-access/{slug}; the credentials email linked /{slug}, which the
console does not route. Without a configured slug the link still points
at the portal's own /customer-portal sign-in.
@roncodes
roncodes changed the base branch from main to release/v0.6.72 October 7, 2026 05:59
@roncodes roncodes mentioned this pull request Oct 7, 2026
@roncodes
roncodes merged commit 66b1ee8 into release/v0.6.72 Oct 7, 2026
8 of 9 checks passed
@roncodes
roncodes deleted the fix/customer-credentials-portal-link branch October 7, 2026 06:02
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