Move default case into an else for better readability
Fix rel-canonical link tag URL for a permalink post