Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When using views on the front page (through page.tpl.php - Bluemarine theme) in embedded form like this :
$view=views_get_view('National news');
print views_build_view('embed', $view, array(), TRUE, 5);
The resulting pager links do not link to the url defined for the view (/news/national?page=0%2C1) but to the main page (/node?page=0%2C1)
Comments
Comment #1
merlinofchaos CreditAttribution: merlinofchaos commentedThat is the behavior of the Drupal pager system, and is just how it works.
Comment #2
wimg CreditAttribution: wimg commentedSo is there a way to get the pager to go to /news/national?page=0%2C1 ? Shouldn't it collect the URL from the view ?
Comment #3
merlinofchaos CreditAttribution: merlinofchaos commentedNope. The Drupal paging system assumes the current page is what the pager belongs to. It's not a pager + a 'put content somewhere else' system.