-
I'm not sure if this is a bug, or expected behaviour. So asking here before I make a github issue. In my routes.ts I have a Route group with a domain like this
Which works as expected. However if I'm in an edge template and I use the This is very awkward, and I'm not sure if it's a bug or expected. Thoughts? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Looks like expected Adonis can't route, if it doesn't know your domain, coz you might want to direct from That |
Beta Was this translation helpful? Give feedback.
-
Thanks for the answer. Would be nice if by providing names for the routes that they could only be used once, then the route helper would be simpler to use in the templates. Either way I have workarounds. |
Beta Was this translation helpful? Give feedback.
Looks like expected
Adonis can't route, if it doesn't know your domain, coz you might want to direct from
foo.com/products
tofoo.com/cart
orfoo.com/products
tobar.com/cart
, so you have to provide domainThat
null
in there is lil bit annoying, but it looks like expected thing