1 (edited by 2014-02-02 18:25:22)

Topic: CuteNews 2.0 Tagline Pagination Error

Hi Support_Team,

Just discovered something with the pagination of tagline. The "Previous" URL from page 2 back to page 1 of a particular tagline page will return a http://www.example.com/news/tag-hello/Array.html URL instead of http://www.example.com/news/tag-hello.html and in this page it shows no entries.

However, manually clicking on "1" URL of the pagination will bring to the correct page.

How do I fix the "Previous" URL? Thanks. https://cutephp.com/forum/style_emoticons/default/smile.gif

Re: CuteNews 2.0 Tagline Pagination Error

Well, I think I solved it after looking through the "active_news" file.

For anyone who are interested to know how to fix this,

Line 150 (Original)

$url = cn_rewrite('tag', $tag, $PSTF);

Change to

$url = cn_rewrite('tag', $tag);

Removing the $PSTF do the trick (although I have no idea what $PSTF is). Support_Team, is this the correct method to fix it? You may want to update it in GitHub for the rest.

Thanks! Cheers.