Skip to content

Commit

Permalink
Fixed redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
ianwieds committed Nov 8, 2023
1 parent 5007c40 commit caf982c
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 21 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
### ALL PAGES ###
layout: master/misc/redirect
permalink: /authentication/success/

### REGULAR PAGES ###
redirect:
url: /authentication-success
---
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@

### REGULAR PAGES ###
redirect:
url: /token
url: /authentication-token
---
23 changes: 3 additions & 20 deletions special/master/redirects/misc/search-cse.html
Original file line number Diff line number Diff line change
@@ -1,26 +1,9 @@
---
### ALL PAGES ###
layout: master/misc/redirect
permalink: /search/cse/

### REGULAR PAGES ###
sitemap:
include: false

meta:
index: false
redirect:
url: "https://cse.google.com/cse?cx=partner-{{ site.advertising.google-adsense }}-{{ site.advertising.cse-site-id }}&ie=UTF-8&q="
---
<html lang="en">
<head>
<!-- <meta http-equiv="refresh" content="0; url={{ page.redirect.url }}"> -->
</head>

<body>
Redirecting...
<script type="text/javascript">
function getQueryStringValue (key) {
return decodeURIComponent(window.location.search.replace(new RegExp("^(?:.*[&\\?]" + encodeURIComponent(key).replace(/[\.\+\*]/g, "\\$&") + "(?:\\=([^&]*))?)?.*$", "i"), "$1"));
}
window.location.href = "https://cse.google.com/cse?cx=partner-{{ site.advertising.google-adsense }}-{{ site.advertising.cse-site-id }}&ie=UTF-8&q=" + getQueryStringValue("q");
</script>
</body>
</html>

0 comments on commit caf982c

Please sign in to comment.