Added support to redirect to pages

I've modified the plugin code to also search for a page entry with the appropriate metadata entry and redirect there if found.