Navigation: Compare domains case-insensitively inside $.mobile.path

(cherry picked from commit ba92be458b2906d757407e0c485bcf01e321f1d5)

Closes gh-7486
Fixes gh-2446