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

merlinofchaos’s picture

Status: Active » Closed (works as designed)

That is the behavior of the Drupal pager system, and is just how it works.

wimg’s picture

So 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 ?

merlinofchaos’s picture

Nope. 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.