Fix extension keys in controller redirects

When the `redirect` method is called with an extension key parameter in an `ActionController` context, the extension key needs to be replaced with the migrated package key.