Skip to content

Commit d452e06

Browse files
committed
added quick’n’dirty redirect to new domain
1 parent fae4fba commit d452e06

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

source/layouts/layout.erb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
<link href="<%= asset_url('stylesheets/style.css') %>" rel="stylesheet">
1010
<script src="//use.typekit.net/vvs3qav.js"></script>
1111
<script>try{Typekit.load();}catch(e){}</script>
12+
<script>
13+
if (location.host != "berlincodeofconduct.org" && location.host != "localhost") {
14+
location.href = "http://berlincodeofconduct.org/<%= "#{I18n.locale}/" unless I18n.locale == :en %>";
15+
}
16+
</script>
1217
</head>
1318
<body class="layout">
1419
<div class="layout--container">

0 commit comments

Comments
 (0)