use page_path if context is not available yet