Skip to content

When Use domain i give E_CANNOT_FIND_ROUTE #4179

@BluestarCo

Description

@BluestarCo

i create route like this

Route.get('/posts', ({ view  }) => {
  return view.render('post')
}).domain('api.localhost').as('posts.show')

when use it inside template

      <a href="{{ route('posts.show') }}">Show</a>

i give this error

E_CANNOT_FIND_ROUTE: Cannot find route for "posts.show" identifier

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions