Optimization pagination (remove first-page links duplicate)

Optimization pagination (remove first-page links duplicate)