So when I am on page http://localhost:1313/docs/prologue/introduction/ and switch to “Deutsch” I want the page switching to http://localhost:1313/de/docs/prologue/introduction/. However the .Permalink used gives me a href to href="//localhost:1313/de/"
Something in the frontmatter of the english and german articles for that URL. Please post and someone will dive into it I don’t have much knowledge of the whole i18n-thing (yet), but IF there is a link it means Hugo knows there is a german translation, so the error will be in the permalink generation for either post.
It could also just be some context issue with the . not being what you assume it is inside of the range. But to me it looks like proper code and it should work as expected.