# Can't scroll through list of user's groups if more than one page

**URL:** https://meta.discourse.org/t/cant-scroll-through-list-of-users-groups-if-more-than-one-page/92259
**Category:** Bug
**Created:** [13 ביולי,‏ 2018,‏ 1:01pm UTC](https://meta.discourse.org/t/cant-scroll-through-list-of-users-groups-if-more-than-one-page/92259 "2018-07-13T13:01:13Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [13 ביולי,‏ 2018,‏ 1:01pm UTC](https://meta.discourse.org/t/cant-scroll-through-list-of-users-groups-if-more-than-one-page/92259/1 "2018-07-13T13:01:13Z")

</div>

If a user is in more groups than will fit on a page, there’s a bug because the `load_more_rows` URL doesn’t include the username.

Here’s what in https:/FORUM/groups.json?username=some\_user

```plaintext
  1. extras:{type_filters: ["public", "close", "automatic"]}
  2. groups:[{id: 552, automatic: false, name: "group_name_one", user_count: 45, mentionable_level: 0,…},…]
  3. load_more_groups:"/groups?page=1"
  4. total_rows_groups:795

```

And when you scroll down the page, subsequent page loads pull from all groups, not just the user’s groups.

This is an edge case, because who puts users in so many groups?

But it does seem to be a legit bug.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [17 ביולי,‏ 2018,‏ 6:52am UTC](https://meta.discourse.org/t/cant-scroll-through-list-of-users-groups-if-more-than-one-page/92259/2 "2018-07-17T06:52:49Z")

</div>

edge case, very hard to repro, but we should fix.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [17 ביולי,‏ 2018,‏ 7:07am UTC](https://meta.discourse.org/t/cant-scroll-through-list-of-users-groups-if-more-than-one-page/92259/4 "2018-07-17T07:07:40Z")

</div>

Would rails commands to create a bunch of groups and add a user to them help?

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [20 באוגוסט,‏ 2018,‏ 9:13am UTC](https://meta.discourse.org/t/cant-scroll-through-list-of-users-groups-if-more-than-one-page/92259/5 "2018-08-20T09:13:11Z")

</div>

> [@pfaffman](#):
>
> Here’s what in https:/FORUM/groups.json?username=some\_user

`username` is an internal filter that we use though so it isn’t meant to be used on the `/groups` page.

However, it does seem like the `load_more_groups` path was missing a couple of params in it which I’ve fixed in

[https://github.com/discourse/discourse/commit/b4f92a05b347cbaa7bc3482095c5fdefe88393b0](https://github.com/discourse/discourse/commit/b4f92a05b347cbaa7bc3482095c5fdefe88393b0)

Thank you for reporting @pfaffman 👍

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [21 באוגוסט,‏ 2018,‏ 10:00am UTC](https://meta.discourse.org/t/cant-scroll-through-list-of-users-groups-if-more-than-one-page/92259/6 "2018-08-21T10:00:10Z")

</div>

This topic was automatically closed after 24 hours. New replies are no longer allowed.
