Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Blog Module /

Discuss the Blog Module.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

weirdness with pagination links (solved)


Go to End


1136 Views

Avatar
wildflower1975

Community Member, 63 Posts

9 August 2016 at 1:44am

Edited: 09/08/2016 2:14am

I'm using SS 3.4 and Blog 2.4.2

the Pagination.SS include is appearing as it should but the links have:
sitename.com/blog/category/blog/category/cat-name?start=20
or
sitename.com/blog/blog?start=20

it's duplicating the root section of the URL when it's generating the $Link
does anybody know where this is made?

I'm guessing it uses a bunch of SiteTree 'URLSegment' and concats them together somewhere?

cheers
Haydn

I had to put a / in Pagination.ss and it worked:

<a href="/$Link">$PageNum</a>