Skip to content

Error with header showing up on second index page. #20

@nenadfilipovic

Description

@nenadfilipovic

I have 10 posts in 2 pages and when I switch to second page blog doesn't recognize it is index page and shows pink header just like it show in posts. Problem is in 'src/routes/index.js in regex /^/page/\d+/$/.test(req.path) which is expecting url to end with '/'. When I change to /^/page/\d+$/.test(req.path) it works like it should. I will send PR.

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