Fixed empty pagePathPrefix not redirecting

When the pagePathPrefix is an empty string, clicking the logo did not redirect.
After I switched around 2 certain `.navigate()` commands, it worked as expected.