Skip to content

Image instead of the page #13

@peterkracik

Description

@peterkracik

I'm having trouble with certain links.

if the url contains same word as an image within wordpress media, the router will redirect me to the image url.

for example:
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.

as soon as I remove or rename the image, it works as it supposes to.

if I debug variables, everything's fine before the call Routes::load()

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