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

Permalink for Translation Homepage wrong with uglyUrls #6883

Closed
Lednerb opened this issue Feb 11, 2020 · 3 comments
Closed

Permalink for Translation Homepage wrong with uglyUrls #6883

Lednerb opened this issue Feb 11, 2020 · 3 comments

Comments

@Lednerb
Copy link

Lednerb commented Feb 11, 2020

With uglyUrls turned on:
uglyUrls = true

And given the following code block:

{{ range $.Site.Home.AllTranslations }}
    {{ if eq ($.Scratch.Get "language") .Language }}
        <a href="{{ .Permalink }}" class="active">{{ .Language }}</a>
    {{ else }}
        <a href="{{ .Permalink }}">{{ .Language }}</a>
    {{ end }}
{{ end }}

I would expect to get the following .Permalink output:
/de/index.html

Instead I get:
/de/

Affected hugo version
Hugo Static Site Generator v0.64.0-241DB8F7 linux/amd64 BuildDate: 2020-02-04T09:10:23Z

Related to #3179


Is this a bug or do I miss something?

@Lednerb
Copy link
Author

Lednerb commented Feb 11, 2020

Maybe also related to #4288 ?

@stale
Copy link

stale bot commented Jun 10, 2020

This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help.
If this is a bug and you can still reproduce this error on the master branch, please reply with all of the information you have about it in order to keep the issue open.
If this is a feature request, and you feel that it is still relevant and valuable, please tell us why.
This issue will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions.

@stale stale bot added the Stale label Jun 10, 2020
@stale stale bot closed this as completed Jul 11, 2020
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant