Skip to content

Bug: Wrong URL copied in panel #259

@ericvicenti

Description

@ericvicenti

When copying a comment link with the copy link button, it should always copy the "focused" URL of the comment, not the panel.

Repro: Open this URL:

https://gabo.es/bitcoin?v=bafy2bzacebgvdhl752qdhdqpbh2nnv354xkbwceagteitqvlh2vssh6yqubxs&panel=comments/zDnaewGjqQdi8qqNFu1fP4PPHuUniTwv8Nq78ezEHzpETDu8o/z6BLS5TCSUD1Y1

And click the "copy comment URL" button from the panel.

Expected, it should copy this URL:

https://gabo.es/bitcoin/:comment/zDnaewGjqQdi8qqNFu1fP4PPHuUniTwv8Nq78ezEHzpETDu8o/z6BLS5TCSUD1Y1

Actual: it copies the URL with the ?panel=

This should apply to all comments that appear in the panel.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions