Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed pagination urls

- Needed a route name to generate paginated URLs for username timelines
  • Loading branch information...
commit 3b8f4ab6003fd400d827a43550f49d8248ccde4d 1 parent d8befeb
@weierophinney authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 view/phly-peep/peep/pagination.phtml
View
6 view/phly-peep/peep/pagination.phtml
@@ -3,7 +3,7 @@
<!-- 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; ?>
@@ -11,7 +11,7 @@
<!-- 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; ?>
@@ -19,7 +19,7 @@
<!-- 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; ?>
Please sign in to comment.
Something went wrong with that request. Please try again.