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

EleventyHtmlBasePlugin outputs pathPrefix 3 times instead of one #3547

Open
lsolesen opened this issue Nov 20, 2024 · 0 comments
Open

EleventyHtmlBasePlugin outputs pathPrefix 3 times instead of one #3547

lsolesen opened this issue Nov 20, 2024 · 0 comments

Comments

@lsolesen
Copy link

Operating system

Ubuntu

Eleventy

3.0.0

Describe the bug

I started encountering a strange issue. htmlBase (https://www.11ty.dev/docs/plugins/html-base/) started outputting the base url 3 times instead of just 1, and that - of course - breaks the included stuff on the site.

The error can be seen here:

https://lsolesen.github.io/minimal-mistakes/

image

Crossposted here: https://discord.com/channels/741017160297611315/1308552212125057024

Reproduction steps

I am using this setup:

import { EleventyHtmlBasePlugin } from "@11ty/eleventy";

export default function (eleventyConfig) {

  // Make it possible to have the site served in a sub directory
  eleventyConfig.addPlugin(EleventyHtmlBasePlugin);
};

Seen in: https://github.com/lsolesen/minimal-mistakes/blob/11ty/_config/mainConfig.mjs

Building like this:

"build-gh-pages": "ELEVENTY_ENV=production eleventy --pathprefix=/minimal-mistakes/"

And the repos is here:

https://github.com/lsolesen/minimal-mistakes/tree/11ty

  • Hopefully some of you can help me figure out, why this is happening?

Expected behavior

Only write pathPrefix one time.

Reproduction URL

https://lsolesen.github.io/minimal-mistakes/

Screenshots

No response

@lsolesen lsolesen changed the title htmlbase outputs pathPrefix 3 times instead of one EleventyHtmlBasePlugin outputs pathPrefix 3 times instead of one Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant