Commit 4a2c574d authored by Yuval Adam's avatar Yuval Adam

Add troubleshooting and deviceinfo redirects

parent 2ba159f9
......@@ -53,3 +53,11 @@ def wiki_page(slug):
title = slug.replace('-', ' ')
html = markdown.markdown(text, extensions=['markdown.extensions.extra', 'markdown.extensions.codehilite'])
return render_template('wiki-page.html', title=title, html=html)
@app.route('/troubleshooting/')
def troubleshooting():
return render_template('redirect.html', url='https://github.com/postmarketOS/pmbootstrap/wiki/Troubleshooting')
@app.route('/deviceinfo/')
def deviceinfo():
return render_template('redirect.html', url='https://github.com/postmarketOS/pmbootstrap/wiki/deviceinfo-reference')
<!doctype html>
<html>
<head>
<meta http-equiv="refresh" content="0;URL=https://github.com/postmarketOS/pmbootstrap/wiki/deviceinfo-reference"
</head>
<body>Redirecting to <a href="https://github.com/postmarketOS/pmbootstrap/wiki/deviceinfo-reference">https://github.com/postmarketOS/pmbootstrap/wiki/deviceinfo-reference</a>...</body>
</html>
\ No newline at end of file
<!doctype html>
<html>
<head>
<meta http-equiv="refresh" content="0;URL=https://github.com/postmarketOS/pmbootstrap/wiki/Troubleshooting"
</head>
<body>Redirecting to <a href="https://github.com/postmarketOS/pmbootstrap/wiki/Troubleshooting">https://github.com/postmarketOS/pmbootstrap/wiki/Troubleshooting</a>...</body>
</html>
\ No newline at end of file
<!doctype html>
<html>
<head>
<meta http-equiv="refresh" content="0;URL={{ url }}"
</head>
<body>Redirecting to <a href="{{ url }}">{{ url }}</a>...</body>
</html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment