Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Double URLs? #39

Open
testareas opened this issue Jul 30, 2018 · 1 comment
Open

Double URLs? #39

testareas opened this issue Jul 30, 2018 · 1 comment
Labels

Comments

@testareas
Copy link

testareas commented Jul 30, 2018

Hi,
Thanks for this theme! Using your default code for from: https://github.com/wildhaber/gohugo-amp/blob/develop/layouts/partials/seo/structured/breadcrumb.html when add it to my site and visit any page, position 2 and other positions show the URL twice?

<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "BreadcrumbList",
  "itemListElement": [{
        "@type": "ListItem",
        "position": 1,
        "item": {
          "@id": "http://localhost:1313/",
          "name": "home"
        }
    },{
        "@type": "ListItem",
        "position": 2,
        "item": {
          "@id": "http://localhost:1313/reviews/http://localhost:1313/reviews/",
          "name": "reviews"
        }
    }]
}
</script>

E.g.
http://localhost:1313/reviews/http://localhost:1313/reviews/

@wildhaber wildhaber added the bug label Aug 24, 2018
@wildhaber
Copy link
Owner

Hey @testareas,

Thanks for reporting, I will need to have a deeper look, but it seems to be broken.

For a simple reproduction - what hugo-version are you using?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants