# Pagination and routes problem

**URL:** <https://www.ruby-forum.com/t/pagination-and-routes-problem/58404>\
**Category:** Rails\
**Created:** [April 21, 2006, 8:20am UTC](https://www.ruby-forum.com/t/pagination-and-routes-problem/58404 "2006-04-21T08:20:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrtnhndrkx](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e274bd/32.png) [@mrtnhndrkx](https://www.ruby-forum.com/u/mrtnhndrkx)\
**Post date:** [April 21, 2006, 8:20am UTC](https://www.ruby-forum.com/t/pagination-and-routes-problem/58404/1 "2006-04-21T08:20:21Z")

</div>

Hi,

I have the following problem, my pagination links do not work.  
At the bottom of my blog the links say: [http://myblog/?page=2](http://myblog/?page=2), ?page=3,  
…  
But they don’t seem to work. When I add the name of the controller, they  
do  
work: [http://myblog/log?page=2](http://myblog/log?page=2).

Any suggestions?

I made a new route like this:  
map.connect “page/:page”,  
:controller =\> “log”,  
:action =\> “index”  
That does work, but you have to enter the route first in the browser:  
[http://myblog/page/2](http://myblog/page/2), after that the links work great. But when I reload  
the  
index page, the links at the bottom again say [http://myblog/?page=2](http://myblog/?page=2).  
How can change this so they also say [http://myblog/page/2](http://myblog/page/2) on my index  
page.

Any help would be great.

Maarten H.

---

<div class="post-metadata">

**Author:** ![mrtnhndrkx](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e274bd/32.png) [@mrtnhndrkx](https://www.ruby-forum.com/u/mrtnhndrkx)\
**Post date:** [April 21, 2006, 12:05pm UTC](https://www.ruby-forum.com/t/pagination-and-routes-problem/58404/2 "2006-04-21T12:05:41Z")

</div>

Oh, sorry, the [myblog.com](http://myblog.com) link was just an example 🙂  
Didn’t realize it was an actual link.

---

<div class="post-metadata">

**Author:** ![mrtnhndrkx](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e274bd/32.png) [@mrtnhndrkx](https://www.ruby-forum.com/u/mrtnhndrkx)\
**Post date:** [April 21, 2006, 1:22pm UTC](https://www.ruby-forum.com/t/pagination-and-routes-problem/58404/3 "2006-04-21T13:22:12Z")

</div>

Problem is solved, it was an caching issue.  
I had to expire the page and now all is well!
