Permalink
Browse files

Fixed pagination urls

- Needed a route name to generate paginated URLs for username timelines
  • Loading branch information...
1 parent d8befeb commit 3b8f4ab6003fd400d827a43550f49d8248ccde4d @weierophinney committed Aug 29, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 view/phly-peep/peep/pagination.phtml
@@ -3,23 +3,23 @@
<!-- Previous page link -->
<?php if (isset($this->previous)): ?>
- <li><a href="<?php echo $this->url(); ?>?page=<?php echo $this->previous ?>">Prev</a></li>
+ <li><a href="<?php echo $this->url('phly-peep'); ?>?page=<?php echo $this->previous ?>">Prev</a></li>
<?php else: ?>
<li><a href="#">Prev</a></li>
<?php endif; ?>
<!-- Numbered page links -->
<?php foreach ($this->pagesInRange as $page): ?>
<?php if ($page != $this->current): ?>
- <li><a href="<?php echo $this->url() ?>?page=<?php echo $page ?>"><?php echo $page; ?></a></li>
+ <li><a href="<?php echo $this->url('phly-peep') ?>?page=<?php echo $page ?>"><?php echo $page; ?></a></li>
<?php else: ?>
<li class="active"><a href="#"><?php echo $page; ?></a></li>
<?php endif; ?>
<?php endforeach; ?>
<!-- Next page link -->
<?php if (isset($this->next)): ?>
- <li><a href="<?php echo $this->url(); ?>?page=<?php echo $this->next ?>">Next</a></li>
+ <li><a href="<?php echo $this->url('phly-peep'); ?>?page=<?php echo $this->next ?>">Next</a></li>
<?php else: ?>
<li><a href="#">Next</a></li>
<?php endif; ?>

0 comments on commit 3b8f4ab

Please sign in to comment.