Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot lookup route "subdomain.login" #4813

Open
decoderid opened this issue Nov 25, 2024 · 2 comments
Open

Cannot lookup route "subdomain.login" #4813

decoderid opened this issue Nov 25, 2024 · 2 comments

Comments

@decoderid
Copy link

decoderid commented Nov 25, 2024

Package version

6.14.1

Describe the bug

METHOD ROUTE .................................................. HANDLER MIDDLEWARE
GET    /login (subdomain.login) ....................... #controllers/auth_…      guest
POST   /login ..................................... #controllers/auth_…      guest

image

Reproduction repo

No response

@RomainLanz
Copy link
Member

Hey @decoderid! 👋🏻

It looks like the domain parameter is missing in your redirect call. As mentioned in the routing section, when using a domain modifier, you’ll need to include it to ensure proper route resolution.

Here's an example:

response.redirect().toRoute('subdomain.login', undefined, { domain: 'xxx' })

Hope this helps! 😊

@decoderid
Copy link
Author

Hey @decoderid! 👋🏻

It looks like the domain parameter is missing in your redirect call. As mentioned in the routing section, when using a domain modifier, you’ll need to include it to ensure proper route resolution.

Here's an example:

response.redirect().toRoute('subdomain.login', undefined, { domain: 'xxx' })

Hope this helps! 😊

thanks for replying, it works. but can it be done without domain name? because it is very strange to have to add domain name every time to do redirect

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

No branches or pull requests

2 participants