Skip to content

The 'RouteNotFound' have a bug #2401

@deatil

Description

@deatil

Issue Description

Checklist

  • Dependencies installed
  • No typos
  • Searched existing issues and docs

Expected behaviour

Actual behaviour

Steps to reproduce

Working code to debug

package main import "github.com/labstack/echo/v4" func main() { e := echo.New() e.HTTPErrorHandler = HTTPErrorHandler e.GET("/test1", test1Handler) e.GET("/test2", test2Handler) e.RouteNotFound("/*", indexHandler) g := e.Group("/admin") g.GET("/test1", adminTest1Handler) g.GET("/test2", adminTest2Handler) g.RouteNotFound("/*", adminIndexHandler) }

Version/commit

Get path /test3 and will goto indexHandler, bug get /admin/test3 goto HTTPErrorHandler. The /admin/test3 goto adminIndexHandler is right.

The echo code have some test, but the bug is not checked.

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