The outbound links version of the tracking code breaks links which 'break out' of an iframe.
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ó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 38/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- html, javascript
Hướng nghiên cứu
Start with the outbound-links.js script and reproduce the supplied HTML example in an iframe using an anchor with target="_top". Trace the click handling and verify that the link opens the Books Etc. site outside the surrounding iframe, as described under Expected behavior.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Bug report
The outbound link version of the tracking breaks the ability of links inside iframes to 'break out' of the iframe when you include target="_top" as one of the <a> tags attributes.
So for example if a HTML page with the following code was included as an iframe in another page, the "link to Books Etc." link would fail to 'break out' of the iframe and the Books Etc. site would be displayed framed within the surrounding page.
<html>
<head>
<title>An example of a link in an iframe</title>
<script async defer data-domain="example.test" src="https://plausible.io/js/plausible.outbound-links.js"></script>
</head>
<body>
<h2>Inside an iframe</h2>
<p>
This <a href="https://www.booksetc.co.uk/" target="_top">link to Books Etc.</a> as <code>target="_top"</code> and so clicking on it should break out of the surrounding page.
</p>
</body>
</html>
Expected behavior
The expected behaviour is that clicking on the Books Etc. link above would break out of the iframe and open the Books Etc. website without it being framed.
Environment
This problem affects multiple browsers e.g. latest versions of Firefox and Chrome.
- 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
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của plausible/analytics
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 2 ngày
-
ObanErrorReporter purges imported data when the cleanup worker crashes — silent loss of completed CSV importsCó thể đã có người làm @EmmS21 đã nhận 95 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
plausible/analytics#5201 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Wrong API URL for GTMĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
plausible/analytics#5200 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của plausible/analytics
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
taskforcesh/bullmq#5038 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
L: python L: ruby:bundler T: bug 🐞
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 69/100
dependabot/dependabot-core#16756 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
feat: signup pageĐang mởd: medium
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Độ khó 2/5 Dưới một giờ Mức phù hợp với người mới 85/100