Unify pagelink generation for better reusability & general sanity