made getCurrentPage account for # in url