If a guest visits a wizard url currently they see this
This task is to redirect guests trying to visit a wizard to forum.domain.com/login, then redirect them back to the wizard upon login completion.
This task involves adding another modification to the ApplicationController. The existing customisations this plugin makes are here: discourse-custom-wizard/plugin.rb at master · paviliondev/discourse-custom-wizard · GitHub
The basic structure will be along the lines of:
If the request url is a wizard url (see existing modficiation), and there is no current user, redirect and store original wizard url
On completion of sign-in, redirect to stored wizard url.