Skip to content

Canonical returns duplicate lang value #489

Open

Description

@MargaritaBusyginaCa

Description

For example, if my current Craft entry URL is https://my-website/en/plans
using {{ seo.canonical }} return https://my-website/en/en/plans

This issue is also mentioned here: #481

Steps to reproduce

  1. in your twig template, put {{ seo.canonical }} inside of your HTML. You will see incorrect link displayed in the UI.

Additional info

  • Craft version: 4.12.8
  • SEO version: 4.2.4
  • PHP version: 8.2
  • Database driver & version:
  • Other Plugins:

Activity

  1. baronvertigovongrahamthesecondofsealand commented on Jan 8, 2025

    @baronvertigovongrahamthesecondofsealand

    This is essentially the problem that prompted me to create this issue here #423, thanks for reporting it! It happens in the Link entry in the response headers also.

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