diff --git a/client/main.js b/client/main.js index fab3c79008..d753bb6cc2 100644 --- a/client/main.js +++ b/client/main.js @@ -1,3 +1,5 @@ +import { donateUrl } from '../common/utils/constantStrings.json'; + var main = window.main || {}; main.ga = window.ga || function() {}; @@ -106,9 +108,9 @@ $(document).ready(function() { // About window.location = '/about'; }); - window.Mousetrap.bind('g n s', () => { - // Shop - window.location = '/shop'; + window.Mousetrap.bind('g n d', () => { + // Donate + window.location = donateUrl; }); window.Mousetrap.bind('g n o', () => { // Settings diff --git a/client/sagas/mouse-trap-saga.js b/client/sagas/mouse-trap-saga.js index b463f83ebf..985117c852 100644 --- a/client/sagas/mouse-trap-saga.js +++ b/client/sagas/mouse-trap-saga.js @@ -18,7 +18,6 @@ const softRedirects = { 'g n n': '/challenges/next-challenge', 'g n a': '/about', 'g n m': '/map', - 'g n s': '/shop', 'g n o': '/settings' }; @@ -30,6 +29,10 @@ export default function mouseTrapSaga(actions$) { 'g n r', () => hardGoTo('https://github.com/freecodecamp/freecodecamp') ), + bindKey( + 'g n d', + () => hardGoTo('https://www.freecodecamp.com/donate') + ), bindKey( 'g n w', () => hardGoTo('http://forum.freecodecamp.com') diff --git a/common/app/components/Nav/links.json b/common/app/components/Nav/links.json index a0342a1fdd..d6c43de3b0 100644 --- a/common/app/components/Nav/links.json +++ b/common/app/components/Nav/links.json @@ -40,7 +40,7 @@ "isReact": true }, { - "content": "Shop", - "link": "/shop" + "content": "Donate", + "link": "https://www.freecodecamp.com/donate" } ] \ No newline at end of file diff --git a/common/utils/constantStrings.json b/common/utils/constantStrings.json index e144beb2b6..7c24d229f2 100644 --- a/common/utils/constantStrings.json +++ b/common/utils/constantStrings.json @@ -1,3 +1,4 @@ { - "defaultProfileImage": "https://s3.amazonaws.com/freecodecamp/camper-image-placeholder.png" + "defaultProfileImage": "https://s3.amazonaws.com/freecodecamp/camper-image-placeholder.png", + "donateUrl": "https://www.freecodecamp.com/donate" } diff --git a/server/views/partials/navbar.jade b/server/views/partials/navbar.jade index da01c78835..5c8faf0aff 100644 --- a/server/views/partials/navbar.jade +++ b/server/views/partials/navbar.jade @@ -25,7 +25,7 @@ nav.navbar.navbar-default.navbar-static-top.nav-height li a(href='/map') Map li - a(href='/shop') Shop + a(href='https://www.freecodecamp.com/donate') Donate if !user li a(href='/signup') Sign Up diff --git a/server/views/resources/sitemap.jade b/server/views/resources/sitemap.jade index 74a24fd2ae..81ee24279b 100644 --- a/server/views/resources/sitemap.jade +++ b/server/views/resources/sitemap.jade @@ -32,7 +32,7 @@ urlset(xmlns="http://www.sitemaps.org/schemas/sitemap/0.9") priority= 0.9 url - loc http://www.freecodecamp.com/shop + loc http://www.freecodecamp.com/donate changefreq weekly lastmod= now priority= 0.9