fixed resource->page redirect loop when using other then localhost