Ported v3.1 pe.navcurrent function to a JEP-based v4.0 plugin (fixes #3081)

Also changed pageURLParts to pageUrlParts to align with getUrlParts.