Stanford-Online/class2go — pull request #1622 by jbau (2012-12-22 02:40:22+00:00)
Title: against #1545 redirects according to codebase.  Also see lots of tests

2 cases:

1. if we get no convenience domain name, i.e. class.stanford.edu/db/Winter2012
* checks if prefix--suffix is a valid class handle in the db
* if not, do not redirect
* if so, redirect if we have the wrong codebase (checking suffix=="fall2012"
to determine whether it should be old or new codebase)

2. if we do get a convenience domain name,
* use CurTermMap to find suffix assoc. with convenience domain name
* redirect if we have wrong codebase (checking suffix=="fall2012"
to determine whether it should be old or new codebase)