Skip to content

Blog post category #73

@Artful-dodger

Description

@Artful-dodger

Since updating to Blog Post v2.2.0, I’ve encountered the following error during template rendering:

"An exception has been thrown during the rendering of a template (“Missing required parameter for [Route: ] [URI: {slug?}] [Missing parameter: {href}].”) in /var/www/html/drift-in/themes/drift-in-laundry-2/partials/pages-blog-category/mainpage.htm at line 64."

This appears to be related to a redirect or route call from: https://drift-in.co.uk/pages-blog-category/

The error suggests a missing parameter—possibly due to a misconfigured route or incorrect usage of {href} instead of {slug}. I’ve reviewed the template and suspect the issue may stem from a line like:

<a href="{{ 'blog-post' | page({ href: post.slug }) }}">

If the route expects slug, this should likely be:

<a href="{{ 'blog-post' | page({ slug: post.slug }) }}">

Could you please advise on the correct parameter usage for this route under Blog v2.2.0? Also, if there were any changes to route definitions or parameter expectations in the update, a reference to the changelog or migration notes would be appreciated.

Thanks in advance for your help!

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