-
-
Notifications
You must be signed in to change notification settings - Fork 23
Description
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!