mirror of
https://github.com/microsoft/language-server-protocol.git
synced 2025-12-23 08:48:16 +00:00
Customize the redirect template (#1506)
Fixes #1505 Customize the redirect.html template to perform a client side javascript redirect that reads the window.location.hash and appends it to the destination URL, before redirecting. See https://github.com/jekyll/jekyll-redirect-from/issues/219
This commit is contained in:
parent
7e7971fca4
commit
7b4ee2073b
1 changed files with 11 additions and 0 deletions
11
_layouts/redirect.html
Normal file
11
_layouts/redirect.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en-US">
|
||||
<meta charset="utf-8">
|
||||
<title>Redirecting…</title>
|
||||
<link rel="canonical" href="{{ page.redirect.to }}">
|
||||
<script>location="{{ page.redirect.to }}".concat(location.hash)</script>
|
||||
<meta http-equiv="refresh" content="0; url={{ page.redirect.to }}">
|
||||
<meta name="robots" content="noindex">
|
||||
<h1>Redirecting…</h1>
|
||||
<a href="{{ page.redirect.to }}">Click here if you are not redirected.</a>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue