2

I am working on a site, I had used a view block on a basic page, this view block has a pager. When we navigate through the pager links we are getting url structure like this

http://www.website.com/page-name?page=1 *http://www.website.com/page-name?page=2*

I want to remove this ?page=1 from the url and want to modify it to page-name-1 and so on.

0

1 Answer 1

2

You can use the Clean Pagination module to get reasonably close:

Clean Pagination is a very simple module that allows you to enable clean URL pagination for specified pages. The way Drupal typically works, if you had a view with the URL 'my-view', subsequent pages would normally use a query to pass the page number, as in 'my-view?page=2'. When Clean Pagination is being used for a page, it will create a url like 'my-view/2'.

If that doesn't do the trick that module should at least serve as a good starting point to convert the pager to exactly what you're looking for.

2
  • is there any other way to get '-' instead of '/'.
    – user7048
    Jun 8, 2013 at 11:33
  • No idea I'm afraid I've never looked at the code for that module. That would be the place to start though as I mentioned before
    – Clive
    Jun 8, 2013 at 12:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.