Welcome Guest, Not a member yet? Register   Sign In
Pagination suffix & reuse_query_string problem
#2

(This post was last modified: 09-07-2016, 12:49 PM by PaulD.)

The suffix you have added is meant to add a suffix like .html or .htm to a url and as you can see, it has been placed in the right place, it is just that it was not meant to add anchor links such as #anchor

Your URL needs to be constructed differently than the way you are currently doing it. To add an anchor to a url when outputting it in a view you could do something easy like:

PHP Code:
<a href="<?php echo site_url('my/segments'); ?>#anchor">My Link</a

I don't use these very much so there might be something better to use in the URL helper, I had a quick look but could not see anything.

Hope that helps,

Paul.

PS I just took a look at the pagination class again as I realised you might not be constructing the links and you are not. The suffix comment above was not about the suffix in the pagination class so my apologies. So this answer is probably entirely irrelevant. Sorry again.
Reply


Messages In This Thread
RE: Pagination suffix &amp; reuse_query_string problem - by PaulD - 09-07-2016, 12:39 PM



Theme © iAndrew 2016 - Forum software by © MyBB