Skip to content

Unknown tenant: no redirect #42

@Psycarlo

Description

@Psycarlo

Hello @hieuhani
Thank you for this amazing module.

When looking around on your website techgoda.net, I found that when I navigate to a non-existing tenant, the page is completely empty. For example: https://unknown.techgoda.net/

Might want to redirect to the main page or show fallback/error message?

const tenant = useTenant();

// SSR login to check if tenant is valid
if (!tenant ...) {
  // Use absolute url otherwise it will redirect to tenant subdomain
  await navigateTo(..., { external: true })
}

Also, is this the best way to handle tenant validity check? Or do you recommend any other way?

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions