Skip to content
This repository was archived by the owner on Feb 23, 2020. It is now read-only.
This repository was archived by the owner on Feb 23, 2020. It is now read-only.

Redirect to event instead of registration detail page #160

@JPustkuchen

Description

@JPustkuchen

After successfully submitting the registration form the user is being redirected to the detail form of the registration (bad UX: without a link back to the source event), or to the website front page if he has no permission for registration access.

It's controlled by:

    if ($registration->access('view')) {
      $form_state->setRedirectUrl($registration->toUrl());
    }
    else {
      $form_state->setRedirect('<front>');
    }

in Drupal\rng\Form\RegistrationForm

This doesn't seem the best option for most cases. I'd suggest to add a setting to select whether the user:

Is redirected back to the event entity
Is redirected to the registration detail page + add a link to the parent event entity
(3. Is redirected to a custom (token) path)

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions