binarix/Laravel-Foundation-Pagination — pull request #4 by Stolz (2013-10-23 21:37:02+00:00)
Title: Fix problem when using base HTML tag

This fixes a problem when your html document uses the [HTML base tag](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base). If you are in the first or last page and you click the "« previous" or "next »" link, respectively, you will be redirected to the main page of your site.

Steps to reproduce:

#### 1.- Add HTML base tag to your layout
```html

...

...

...

```
#### 2.- Click Previous or Next link in one of the edges of the pagination

Visit the first page and click the pagination previous («) link or visit the last page and click the previous next (») link.

You will be sent to the home page of your site.

----
IMHO makes no sense to show the the previous («) link when you are in the first page (or same for the next » link and the last page) but I understand this is just my personal taste so I decided to keep them in the PR.