Best practices around conditional steps in page flows

What are some best practices around conditional re-directing in a sign up flow process?

Let’s say for a specific kind of user, then I want to redirect them X page and then back to the regular flow once they are done filling out out X page.

I am currently approaching the problem from a naive standpoint, using

|> redirect(to: Routes.page_path(conn, :index))

And then re-creating the flow.

What are some other ways I could do it?