[SOLVED] [Drupal Views] How to scroll to the top of a View after using a pager to load the page

| | 1 min read

The Drupal Views module provides pagers that lets you browse the items in the View via AJAX. Most of the time using the pager to view the next page will leave you at the bottom of the page when you expect to go to the top. This usually turns out to be a nuisance. Views currently does not provide a way to fix that. But there is a workaround to let you scroll to the top of a View after using a pager to load the page in your Drupal site. Read on to find out more.

The workaround is quite simple. There is a patch available in Drupal to fix this issue. The patch can be found at http://drupal.org/files/ajax_pager_scroll_top-1233334-13.patch
Simply apply the patch to fix the issue.

Hope that helps.

The easiest way to solve a Drupal issue is to hand it to the Drupal experts. We can provide a wide range of Drupal services to help you maintain and manage your Drupal websites.Get in touch with us to know more.