Skip to content

Wildcard lookup issue with previously defined deep paths... #23

@crisward

Description

@crisward

With the following Kemal app, if I go to /reviews/ I get page not found.

require "kemal"

get "/*" do |env|
  "reviews"
end

get "/resources/js/*" do |env|
  "some js"
end

get "/robots.txt" do |env|
  "robots"
end

Kemal.run

However if I remove either of the two routes begining with "r" the wildcard matches and I get back reviews, eg this works

require "kemal"

get "/*" do |env|
  "reviews"
end

get "/robots.txt" do |env|
  "robots"
end

Kemal.run

I'm reporting this here as this looks like a radix issue, @sdogruyol what do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions