Skip to content

Commit 062dff8

Browse files
committed
add redirects for MC on hoc and code
1 parent fdeab02 commit 062dff8

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

pegasus/routes/hoc_routes.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
partner_sites = CDO.partners.map{|x|x + '.code.org'}
22

33
get '/:short_code' do |short_code|
4+
short_code = 'mchoc' if short_code.downcase == 'mc'
45
only_for ['code.org', 'csedweek.org', 'hourofcode.com', partner_sites].flatten
56
pass if request.site == 'hourofcode.com' && ['ap', 'ca', 'co', 'gr'].include?(short_code)
67
pass unless tutorial = DB[:tutorials].where(short_code: short_code).first

pegasus/sites.v3/hourofcode.com/public/mc.redirect

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy