-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstore-redirect.html
40 lines (37 loc) · 1.27 KB
/
store-redirect.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---
id: store
layout: default
title: BinaryAge Store
menu: store
fastspring: 1
---
<script>
(function () {
// historical notes: https://github.com/binaryage/deals/issues/17
// we want to redirect https://sites.fastspring.com/binaryage-store/instant/totalfinder
var l = document.location+"";
if (l.match(/binaryage-store\/instant\/totalfinder(|\?.*)$/)) {
window.location = "https://sites.fastspring.com/binaryage/instant/totalfinder";
} else if (l.match(/binaryage-store\/instant\/totalspaces(|\?.*)$/)) {
// we want to redirect https://sites.fastspring.com/binaryage-store/instant/totalspaces
window.location = "https://sites.fastspring.com/binaryage/instant/totalspaces2";
} else {
// we want to redirect other cases
window.location = "https://sites.fastspring.com/binaryage/product/store";
}
})();
</script>
<div id="main-store" class="wf">
<div class="container">
<div class="store-box">
<div class="store-header">
<div class="store-header-title">BinaryAge Store</div>
</div>
##INSERT STORE CONTENT HERE##
</div>
<div class="store-security">
<!-- TemplateBeginEditable name="SecurityTransparent" -->
<!-- TemplateEndEditable -->
</div>
</div>
</div>