Ensure legacy redirect preserves format

This is a small fix to the legacy redirect code that ensures that the format is preserved on a redirect.

This will simplify the OS fixing their links as they can add `.png` to the end of their current urls.