Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions content/t/code-camera/contents.lr
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
_model: redirect
---
new_path: https://gist.github.com/freakboy3742/d3528ac8262b230480a60c0a3161f144
3 changes: 3 additions & 0 deletions content/t/code/contents.lr
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
_model: redirect
---
new_path: https://gist.github.com/freakboy3742/64f58383864f885f535c9d0042d9f0a9
9 changes: 9 additions & 0 deletions content/t/contents.lr
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
_model: page
---
title: Tutorial Shortlinks
---
hide_from_index: no
---
_discoverable: no
---
_hidden: no
3 changes: 3 additions & 0 deletions content/t/icons/contents.lr
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
_model: redirect
---
new_path: https://docs.beeware.org/en/latest/_downloads/a8f92cddc5b6e0f777b9d9b223d31cce/icons.zip
3 changes: 3 additions & 0 deletions content/t/linux-deps/contents.lr
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
_model: redirect
---
new_path: https://gist.github.com/freakboy3742/2e3a524bf6f1cd4486bb9e7fa2a2d3fb
3 changes: 3 additions & 0 deletions content/t/slides/contents.lr
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
_model: redirect
---
new_path: https://www.dropbox.com/scl/fi/h6zngysnbibk3ly4e0qz9/Build-a-cross-platform-GUI-app-with-BeeWare.pdf?rlkey=knjrqcv5e6wxzv9335va0j5qu&st=t1t4ppji&dl=0
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This redirect doesn't work because it replaces each & in the URL with &.

10 changes: 5 additions & 5 deletions templates/redirect.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{% extends "layout.html" %}
{% from "macros/breadcrumbs.html" import breadcrumbs %}

{% block title %}Redirecting... {{ this.new_path }}{% endblock %}
{% block title %}Redirecting... {{ this.new_path|safe }}{% endblock %}
{% block extra_head %}
<meta http-equiv="refresh" content="0;URL='{{ this.new_path }}" />
<link rel="canonical" href="{{ this.new_path }}"/>
<meta http-equiv="refresh" content="0;URL='{{ this.new_path|safe }}" />
<link rel="canonical" href="{{ this.new_path|safe }}"/>
<script>
window.location.href = "{{ this.new_path }}"
window.location.href = "{{ this.new_path|safe }}"
</script>
{% endblock %}
{% block preamble %}
<div class="banner">
<div class="container">
<h1>Redirecting...</h1>
<p>{{ this.new_path }}</p>
<p>{{ this.new_path|safe }}</p>
</div>
</div>
{% endblock %}