Hello, I just joined. I'm having <this same issue>...
# talk-kratos
s
Hello, I just joined. I'm having this same issue where verification step doesn't respect
return_to
param on v1.0.0. When I checked the commit logs I'm guessing it was fixed here:
6a0a9149b9828ba994bec9b48a43f9d70245f43f
, & I built that commit to try and use it, but I cannot run migrations on that commit to an unrelated issue. is it possible to run the latest
master
or am I out of luck until the next release?
Update: migrations seem to stop working for me on
2cb3ea2eaff909ac936611d5653f69e713f41b64
. and the commit does provide some instruction:
Copy code
Note that the **postgres** and **CRDB** migrations create special indexes useful for this feature. To use [online schema changes](<https://www.cockroachlabs.com/docs/v23.1/online-schema-changes>) with cockroach, we recommend to manually copy the index definition and run it before applying migrations. The migration will then be a no-op.
But it suggests that running migrations for postgres (what I'm using) will create the indexes but instead I get an error.
Copy code
CREATE INDEX identity_credential_identifiers_nid_identifier_gin ON identity_credential_identifiers USING GIN (nid, identifier gin_trgm_ops);
: ERROR: data type uuid has no default operator class for access method "gin" (SQLSTATE 42704)
I was able to work around this. I noticed the
return_to
param was being passed successfully in the flow through registration. it was just not a passed to verification. So I just removed the redirect to the verification page. In
kratos.yml
there was an option:
Copy code
registration:
      after:
        password:
          hooks:
            # - hook: show_verification_ui
So I commented out the hook to show verification. I think my conversion on verification will be worse, but at lease the user is redirected to the proper screen now using v1.0.0.