Fixed oauth redirect url path. URL works with nested pathnames.

Fixed the oauth redirect url. it only worked when o2c.html was on top level. Now it supports nested paths.