Fixed an ugly bug that broke page links for setups that use PATH_INFO permalinks with %category% at the beginning of the permalink structure.