Skip to content

"Save selected links" should remove anchor suffix from url to remove duplicates #1762

@raelb

Description

@raelb

Describe the bug
If you use the "Save selected links" function, and links contain anchor suffix, then SingleFile won't detect duplicate links

To Reproduce
For example on this page:
https://daat.ac.il/daat/mahshevt/more/a1-2.htm
(it is in hebrew)„ if you select text, the links will include:
https://daat.ac.il/daat/mahshevt/more/a1-2.html#1
https://daat.ac.il/daat/mahshevt/more/a1-2.html#2

So in the "Batch save urls" screen, each link will be shown separately, but in fact it is only pointing to a single file, so there should only be a single entry.

Expected behavior
SingleFile should remove the trailing anchor part, in order to detect duplicates.

Environment

  • OS: Win10 Pro
  • Browser: Firefox
  • Version: [x64]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions