[Wiki] URL generation error redirecting when invalid encoding
When we redirect due to invalid encoding, we need to ensure that the URL generation is correct. Here it appears to fail due to a missing `id`. Hypothesis: the page is `nil`.
https://sentry.gitlab.net/gitlab/gitlabcom/issues/1624183/?referrer=gitlab_plugin
```
ActionController::UrlGenerationError: No route matches {:action=>"show", :controller=>"projects/wikis", :id=>nil, :namespace_id=>#<Group id:1082928 @lock3>, :project_id=>#<Project id:16236008 lock3/clang-cppx>>}, possible unmatched constraints: [:id]
action_dispatch/journey/formatter.rb:57:in `generate'
raise ActionController::UrlGenerationError, message
action_dispatch/routing/route_set.rb:738:in `generate'
@set.formatter.generate(named_route, options, recall, PARAMETERIZE)
action_dispatch/routing/route_set.rb:769:in `generate'
Generator.new(route_key, options, recall, self).generate
action_dispatch/routing/route_set.rb:816:in `url_for'
path, params = generate(route_name, path_options, recall)
action_dispatch/routing/route_set.rb:269:in `call'
t._routes.url_for(hash, route_name, url_strategy)
...
(148 additional frame(s) were not displayed)
ActionController::UrlGenerationError: No route matches {:action=>"show", :controller=>"projects/wikis", :id=>nil, :namespace_id=>#<Group id:1082928 @lock3>, :project_id=>#<Project id:16236008 lock3/clang-cppx>>}, possible unmatched constraints: [:id]
```
---
## Testing Activity
@.luke
* Controller Test
## MR Breakdown
https://gitlab.com/gitlab-org/gitlab/-/issues/219110#note_354111289
issue