Upstatement / routes

Simple routing for WordPress
188 stars 39 forks source link

Resolve loading image instead of the template file #14

Closed peterkracik closed 5 years ago

peterkracik commented 6 years ago

in the case where the name of one of the parameter is similar to an image within the wp, it would load that first.

the link mysite.com/category/books/ where "books" is a slug of the category, it should redirect me to the detail page of the category. except there is an image "Books.jpg" within the wp media, in that case it will redirect me to the mysite.com/wp-content/uploads/2018/09/Books.jpg.

coveralls commented 6 years ago

Coverage Status

Coverage decreased (-4.3%) to 61.972% when pulling a153d40de5e2ba8e67d3bdd00f0c5677045e40f3 on hatto:patch-1 into 64f036b80351c85fc9c93722220bfc3153de8e04 on Upstatement:master.

jarednova commented 5 years ago

Thanks @hatto ! Merging in ...