Pagination and routes problem


#1

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, ?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.

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, after that the links work great. But when I reload
the
index page, the links at the bottom again say http://myblog/?page=2.
How can change this so they also say http://myblog/page/2 on my index
page.

Any help would be great.

Maarten H.


#2

Oh, sorry, the myblog.com link was just an example :slight_smile:
Didn’t realize it was an actual link.


#3

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