match URL on the current_page instead of the current link

I think this fixes #178, but we'll have to see when it is deployed.