Fix bug in viewport offset with different aspect ratio
Fix 'Show in webclient' url with template