Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

With pages broken down by URL, sorting the Top pages details also sorts the Entry pages and Exit pages details

Đang mở Phù hợp với người mới
#6,803 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
75/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
elixir, javascript
Lĩnh vực
analytics, frontend

Hướng nghiên cứu

Bắt đầu với assets/js/dashboard/hooks/use-metric-order-by.ts, ở phần tạo khóa sắp xếp đã lưu và getStoredOrderBy, sau đó kiểm tra ba mục báo cáo URL trong assets/js/dashboard/stats/reports/reports-config.ts, quanh các dòng 170, 206 và 255. Tái hiện lỗi bằng cách sắp xếp Top pages ở chế độ URL rồi mở chi tiết Entry pages hoặc Exit pages. Hoàn tất khi mỗi báo cáo giữ thứ tự sắp xếp riêng và hành vi của chế độ Path vẫn như mong đợi.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Watch in BugReels (URL is picked at 0:17, Top pages is sorted by Visitors ascending at 0:35, the Entry pages details open sorted ascending at 1:42, Top pages is sorted by Bounce rate at 3:03, and the Entry pages details open sorted by Bounce rate at 3:34)

Past Issues Searched
  • I have searched open and closed issues to make sure that the bug has not yet been reported
Issue is a Bug Report
  • This is a bug report and not a feature request, nor asking for self-hosted support
Using official Plausible Cloud hosting or self-hosting?

Plausible Cloud from plausible.io

Describe the bug

When the pages report is broken down by URL, the Top pages, Entry pages and Exit pages details share one stored sort order. Sorting one of them changes how the others open. In Path mode each of the three keeps its own sort.

Reproduced on the public demo dashboard https://plausible.io/plausible.io on 2026-10-26, in a fresh browser profile. The code is the same on master (57f734e).

Steps:

  1. In the pages report, click "Breakdown options" and pick "URL".
  2. With "Top pages" selected, click "View details", click the "Visitors" header once (lowest first), and close the details.
  3. Click the "Entry pages" tab and click "View details".

Actual: the Entry pages details open sorted by "Unique entrances" ascending, starting with "ingest.plausible.io/blog/community-edition" with 1 unique entrance. localStorage has a single key, order_URL_by__plausible.io = [["visitors","asc"]], for all three URL reports. Later in the same recording, Top pages is sorted by Bounce rate, and the Entry pages details then open sorted by Bounce rate as well.

Expected behavior

The Entry pages details open with their default sort, most unique entrances first, the same as in Path mode, where the keys are order_Page_by, order_Entry page_by and order_Exit page_by. The sort chosen in Top pages applies to Top pages only.

Cause

The stored sort key is built from the report's dimensionLabel:

https://github.com/plausible/analytics/blob/57f734e3dbc5e96d868766dc1e61064984ee3a80/assets/js/dashboard/hooks/use-metric-order-by.ts#L88-L94

The three URL reports all use the label "URL":

https://github.com/plausible/analytics/blob/57f734e3dbc5e96d868766dc1e61064984ee3a80/assets/js/dashboard/stats/reports/reports-config.ts#L170
https://github.com/plausible/analytics/blob/57f734e3dbc5e96d868766dc1e61064984ee3a80/assets/js/dashboard/stats/reports/reports-config.ts#L206
https://github.com/plausible/analytics/blob/57f734e3dbc5e96d868766dc1e61064984ee3a80/assets/js/dashboard/stats/reports/reports-config.ts#L255

getStoredOrderBy accepts the stored value whenever its metric is sortable in the current report. Visitors and bounce rate exist in Top pages and Entry pages, and visitors exists in Exit pages, so the stored sort carries across. The labels came from #6452, which added the URL breakdown. The label is also the column header, so the key needs something unique per report instead, for example the report's detailsPath (pages-with-hostname, entry-pages-with-hostname, exit-pages-with-hostname). I have not tested that change.

Screenshots

The replay link above shows the dashboard.

Environment
- OS: Linux
- Browser: Chrome
- Browser Version: 151

This report was drafted with Claude Code (Claude Opus 5.5). The bug was reproduced on the demo, and the cause was checked against the linked source.

Ngôn ngữ chính
Elixir
Star
29.7k
Fork
1.9k
Merge trung bình
3 ngày 22 giờ
Pull request đã merge (30 ngày)
50

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của plausible/analytics

Tất cả issue của plausible/analytics

Issue tương tự

Thêm issue về Elixir

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.