fix bug in resource page where-from