• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 473
  • Last Modified:

Drupal - Page Route - Content template

 Hi All,

I can't seem to get the page route module to move to the next page, after it creates the profile page. 1. I created a route called Registration 2. Inside the route I have two pages, a) Content Profile Editing Form b) Node Add form

The page route should take the user to the profile create page, and then route to the create a group node page.

Problem is after the user is directed to the content profile editing form and clicks next, it redirects back to the profile form instead of going to the next page.

Any ideas, this does not seem normal at all.
1 Solution
VantaBodsAuthor Commented:
Found a soluition:

I thought it might be a module or a coding change I have made so I decided to create a new drupal install and only install the modules needed.

I still had the same problem, very strange indeed. I eventually found the this article, with someone whom has had the same issues.


The following needs to be added to the pageroute.module
 * Submit function for all pageroute forms, except submit-like tab buttons
 * Redirect to the set target.
function pageroute_page_form_submit($form, &$form_state) {

  $page = &$form_state['page'];
  $route = &$form_state['storage']['route'];

 /* hack saturnino part */
  if(!empty( $page->options['neighbours']['forward']) )
        drupal_redirect_form($form, $route->path.'/'.$page->options['neighbours']['forward']);
  /* hack saturnino part */

  // no page access -> try redirect
  if (!$route->checkPageAccess($page->name, $form_state['target'])) {
    $form_state['rebuild'] = FALSE;

    if ($route->options['redirect_path']) {
      drupal_redirect_form($form, pageroute_get_redirect_path($page));


  $form_state['rebuild'] = TRUE;

Open in new window

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now