Add special homepage OAS rule. Fix scoping.
Rename pageType var to something less common