To redirect the user after the login back to the webform i have changed line1019 of the webform.module into

      $message = t('You must <a href="!login">login</a> or <a href="!register">register</a> to view this form.', array('!login' => url(('user/login'), drupal_get_destination()), '!register' => url(('user/register'), drupal_get_destination())));

greetings

MM

CommentFileSizeAuthor
#2 webform_module_login.patch1.04 KBguignonv
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

quicksketch’s picture

Title: redirect users after login to the form » Redirect Users Back to Form When Using Login Link
Status: Active » Needs work

Thanks. A patch file would be more appropriate, since the line numbers tend to change during development. However I see what's being accomplished here, so I'll move to the patch queue.

guignonv’s picture

Version: 5.x-2.4 » 6.x-2.4
Status: Needs work » Needs review
FileSize
1.04 KB

Here is the patch for the issue described above but for Drupal 6.
Bascially, "url(('user/register'), drupal_get_destination())" becomes "url(('user/register'), array('query' => drupal_get_destination()))".

quicksketch’s picture

Status: Needs review » Fixed

Thanks guys! Committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.