Added ref (next, prev) attributes to the pagination links

Signed-off-by: Pablo de la Concepción Sanz <pconcepcion@gmail.com>
Merge pull request #1304 from pconcepcion/1.6/develop

Added ref (next, prev) attributes to the pagination links