Skip to content

Incorrect canonical and alternate on blog posts #468

Description

@SleeplessByte

Describe the bug
Blogs don't get the correct alternates or canonicals.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://www.fronteers.nl/nl/blog/2022/12/wees-niet-slim-en-gebruik-webstandaarden

Expected behavior

<link rel="alternate" hreflang="nl-NL" href="https://www.fronteers.nl/nl/blog/2022/12/wees-niet-slim-en-gebruik-webstandaarden">

Screenshots

<link rel="alternate" hreflang="nl-NL" href="https://www.fronteers.nl/nl/blog/2024/10/nieuwe-website">
<link rel="alternate" hreflang="en-US" href="https://www.fronteers.nl/en/blog/2024/10/nieuwe-website">

More context
The issue is that all blog posts have the same key by default. They should use the permalink instead of key (empty) when the key is empty!

Activity

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

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