Skip to content

Fix null error when using with SSG#373

Closed
lokmanm wants to merge 1 commit into
statamic:masterfrom
lokmanm:array-merge-fix
Closed

Fix null error when using with SSG#373
lokmanm wants to merge 1 commit into
statamic:masterfrom
lokmanm:array-merge-fix

Conversation

@lokmanm
Copy link
Copy Markdown

@lokmanm lokmanm commented Jan 30, 2025

When using SEO Pro with Statamic SSG, and you have a custom route:

Route::statamic('/custom', 'pages.custom', [
    'seo' => [
        'title' => 'Custom Title',
        'description' => 'Custom Description',
    ]
]);

For some reason $this->current on the parseAntlers function returns null which throws an error during builds.

@ryanmitchell
Copy link
Copy Markdown
Contributor

I came here to open a PR for the same thing, seems the code has changed since you opened this, so I've a new PR at #381

@duncanmcclean
Copy link
Copy Markdown
Member

duncanmcclean commented May 1, 2025

Thanks for this! Closing in favour of #381.

@jesseleite
Copy link
Copy Markdown
Contributor

Yes thank you @lokmanm! Sorry for the delay. Just tagged the fix in 6.6.4 🤘

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants