Skip to content

check path 404 #3874

@zhuchaoling

Description

@zhuchaoling

Is there a feature to detect a 404 error in an API? For example, if the path is 404, return true and redirect to the homepage.

const isNotFoundPath = router.checkNotFound('/test/404') // true

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