I have setup hreflang correctly however I am stuggling to find the variable that will pull permalink for default language.

Current URL: www.domain.com/fr/test/
Default language is: en

I have the current code

<link rel="alternate" hreflang="x-default" href="{{ .Permalink }}">
{{ if .IsTranslated }}
{{ range .Translations }}
<link rel="alternate" hreflang="{{ .Language.Lang }}" href="{{ .Permalink }}">

And I want to get this output.

<link rel="alternate" hreflang="x-default" href="www.domain.com/en/test/">
<link rel="alternate" hreflang="en" href="www.domain.com/en/test/">
<link rel="alternate" hreflang="fr" href="www.domain.com/fr/test/">
<link rel="alternate" hreflang="de" href="www.domain.com/de/test/">

However I need something instead of .permalink to pull the URL for the page I’m on but that makes sure its the default language