Confirmation redirect path config field not working as expected

Created on 12 April 2024, 9 months ago
Updated 15 April 2024, 9 months ago

Problem/Motivation

I don't want my users to be redirected to the registration itself, so I added my domain URL into the override field on the Registration settings on the Content Type edit screen to test that field. I tested a couple of options, including an external link, and none of them redirect anywhere other than the registration itself. I tried exporting my changes and clearing my cache. I'm not sure if I'm missing something or if this is truly a bug. My assumption is that adding something to this input should override all defaults.

Ideally I would like to redirect my users back to the host entity even if they have permissions to view their own registration. I was attempting to override this default behavior because I do want my users to be able to delete their registrations on their own.

Steps to reproduce

Install Drupal at 10.2.2 and Entity Registration at 3.1.4. Do all the things to create a registration type and add it to a content type. Fill in the 'Confirmation redirect path' with some kind of input.

Proposed resolution

Adding something to the 'Confirmation redirect path' field should override the default settings of redirecting to the registration itself or to the host entity as expected from the provided help text.

πŸ’¬ Support request
Status

Closed: works as designed

Version

3.1

Component

Registration Core

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @hannakras
  • πŸ‡ΊπŸ‡ΈUnited States john.oltman

    Thanks for the post @hannakras. The confirmation redirect feature is passing tests and works for me in my local test system. I'm happy to dig into this further but will need more info. Guessing a different module is interfering. Use my d.org contact form if you want to send me login info to your site or a site dump.

  • Hey @john.oltman, I was using the same node to test my changes. If I updated the field instance config, then the changes were not displaying in my current node. I tried updating the confirmation message and redirect, neither worked as expected. I exported the config and cleared cache as well. When I create a new node, the confirmation message and redirect changes are reflected. It appears that registration_settings_field_data is storing the confirmation message and redirect in the database. I didn't realize the confirmation message and redirect could be set per node, and what I was affecting were actually the defaults on the content type > registration field settings, so those defaults weren't affecting previously created nodes. Now that I got that figured out, everything works as expected.

  • Status changed to Closed: works as designed 9 months ago
  • πŸ‡ΊπŸ‡ΈUnited States john.oltman

    Great to hear, thanks for letting me know. Yes, registration settings are "per host entity", or per node in your case, with only the defaults in config. Glad it is working for you.

Production build 0.71.5 2024