Skip to content

Commit a8f89bf

Browse files
committed
Use RelPermalink for author profile links to fix deploy preview URLs
Absolute Permalink bakes in the baseURL (https://powershell.org), which breaks links on Netlify deploy previews. RelPermalink gives a root-relative path that works on any deployment domain. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017vQdwS6gqbFhxk55vCFPcD
1 parent fc852d1 commit a8f89bf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

themes/powershell-community/layouts/_default/authors.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ <h1 class="text-4xl lg:text-5xl font-bold mb-2">{{ .Title }}</h1>
4646

4747
<!-- Author Info -->
4848
<h2 class="text-2xl font-bold text-center text-gray-900 mb-2">
49-
<a href="{{ .Page.Permalink }}" class="hover:text-blue-600 transition-colors duration-200">
49+
<a href="{{ .Page.RelPermalink }}" class="hover:text-blue-600 transition-colors duration-200">
5050
{{ .Page.Title }}
5151
</a>
5252
</h2>
@@ -58,7 +58,7 @@ <h2 class="text-2xl font-bold text-center text-gray-900 mb-2">
5858
</p>
5959

6060
<!-- View Profile Button -->
61-
<a href="{{ .Page.Permalink }}"
61+
<a href="{{ .Page.RelPermalink }}"
6262
class="block w-full bg-blue-600 text-white text-center px-4 py-2 rounded-lg font-medium hover:bg-blue-700 transition-colors duration-200">
6363
<i class="fas fa-arrow-right mr-2"></i>View Profile
6464
</a>

0 commit comments

Comments
 (0)