Check permissions before redirecting to the canonical URL