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

[Issue] Alternate links occasionally contain an extra /{lang}/ in the href #64

Open
michael-proulx opened this issue Sep 3, 2024 · 0 comments

Comments

@michael-proulx
Copy link

michael-proulx commented Sep 3, 2024

This is a minor issue since we will be removing overwritten files.

When using npx rosey build, if files already exist in the origin folder (e.g., dist/fr/author/michael-proulx/index.html), an extra /fr/ is sometimes added in the alternate link href attribute. This does not occur every time.

Example of Issue:

For the file dist_translated/fr/author/michael-proulx/index.html, you might see the following in the HTML:

<!DOCTYPE html>
<html lang="fr">
  <head>
    <meta content="fr" http-equiv="content-language">
    <link href="/fr/author/michael-proulx/" hreflang="en" rel="alternate"> <!-- extra /fr/ in href -->
    <link href="/de/fr/author/michael-proulx/" hreflang="de" rel="alternate"> <!-- extra /fr/ in href -->
    ...
  </head>
  <body>
  ...
  </body>
</html>
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

No branches or pull requests

1 participant