Fix resource paths for non-top-level pages.