Avoid redirects in internal links by appending trailing slash (#857)

The web server redirects pages like `/blog` to `/blog/`, which slows
down navigation a bit. This can be avoided by fully spelling out the URLs
in internal links.
This commit is contained in:
Hugo Locurcio
2024-05-31 11:50:34 +02:00
committed by GitHub
parent 7633697a90
commit 8f2c233990
22 changed files with 94 additions and 71 deletions

View File

@@ -33,7 +33,7 @@ collection: article
gap: 30px;
padding: 20px 0 39px;
}
.head .main > :last-child,
.head .main > :last-child,
.head .main > :first-child {
margin: 0;
}
@@ -82,13 +82,13 @@ collection: article
<div class="container">
<!-- Search -->
<!-- Categories -->
<div class="tags">
<h3>Categories </h3>
<a href="/blog" title="Show all categories">
<a href="/blog/" title="Show all categories">
<div class="tag tag--default {% if page.category == 'all' %}active{% endif %}">All</div>
</a>

View File

@@ -54,7 +54,7 @@ layout: default
{% endfor %}
<p class="previous-releases">
<strong class="previous-releases-featured">For the latest version, <a href="/download/windows" class="set-os-download-url" data-version="4">Download Godot 4</a>.</strong>
<strong class="previous-releases-featured">For the latest version, <a href="/download/windows/" class="set-os-download-url" data-version="4">Download Godot 4</a>.</strong>
<br>
You can find previous releases in the <a href="/download/archive">download archive</a>.
</p>

View File

@@ -200,7 +200,7 @@ layout: default
<img width="24" height="24" src="/assets/images/platforms/macos.svg" title="macOS" alt="macOS" />
<span>macOS</span>
</a>
<a href="/download/windows" class="tab title-font {% if page.platform == 'Windows' %} active {% endif %}">
<a href="/download/windows/" class="tab title-font {% if page.platform == 'Windows' %} active {% endif %}">
<img width="24" height="24" src="/assets/images/platforms/windows.svg" title="Windows" alt="Windows" />
<span>Windows</span>
</a>
@@ -343,7 +343,7 @@ layout: default
<p class="thankyou-donate">
Godot exists thanks to people like you! Consider supporting continued development of the engine with a donation.
</p>
<a href="/donate" class="btn btn-donate">
<a href="/donate/" class="btn btn-donate">
Make a Donation
</a>

View File

@@ -14,22 +14,22 @@ current_tab: ''
</div>
<div class="tabs">
<a href="/contact" class="title-font {% if page.current_tab == 'contact' %} active {% endif %}">
<a href="/contact/" class="title-font {% if page.current_tab == 'contact' %} active {% endif %}">
Contact
</a>
<a href="/code-of-conduct" class="title-font {% if page.current_tab == 'code-of-conduct' %} active {% endif %}">
<a href="/code-of-conduct/" class="title-font {% if page.current_tab == 'code-of-conduct' %} active {% endif %}">
Code of Conduct
</a>
<a href="/privacy-policy" class="title-font {% if page.current_tab == 'privacy-policy' %} active {% endif %}">
<a href="/privacy-policy/" class="title-font {% if page.current_tab == 'privacy-policy' %} active {% endif %}">
Privacy
</a>
<a href="/governance" class="title-font {% if page.current_tab == 'governance' %} active {% endif %}">
<a href="/governance/" class="title-font {% if page.current_tab == 'governance' %} active {% endif %}">
Governance
</a>
<a href="/teams" class="title-font {% if page.current_tab == 'teams' %} active {% endif %}">
<a href="/teams/" class="title-font {% if page.current_tab == 'teams' %} active {% endif %}">
Teams
</a>
<a href="/license" class="title-font {% if page.current_tab == 'license' %} active {% endif %}">
<a href="/license/" class="title-font {% if page.current_tab == 'license' %} active {% endif %}">
License
</a>
</div>

View File

@@ -45,7 +45,7 @@ layout: default
<div class="main">
<div style="margin: 1.25rem 0">
<a href="/showcase"><strong>&lt;</strong>&nbsp;&nbsp;Back to showcase</a>
<a href="/showcase/"><strong>&lt;</strong>&nbsp;&nbsp;Back to showcase</a>
</div>
<h1 class="intro-title">{{ page.title }}</h1>