Skip to content

Handling both a default starting state and 404 errors. #3336

Closed
@floatingpurr

Description

@floatingpurr

Hi there. I'd like to handle both a default state for the first page get and show a 404 error template if a url does not exist. I'm trying with

$urlRouterProvider.otherwise("/");

That solve my first problem but, of course, anytime an incorrect url is typed, ui-router load the starting state. Is there a way to handle those two cases separately?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions