Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

possibility to modify shared/archived in URL for Bookmarklet #878

Open
Strubbl opened this issue Oct 10, 2024 · 3 comments
Open

possibility to modify shared/archived in URL for Bookmarklet #878

Strubbl opened this issue Oct 10, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@Strubbl
Copy link
Contributor

Strubbl commented Oct 10, 2024

Hello,
is it possible to manipulate the GET parameters of the bookmarklet URL in order to tick the checkboxes of the new bookmark form?

I mean, extending the bookmarklet URL by some parameters for shared and archived:
/linkding/bookmarks/new?url=https%3A%2F%2Fgithub.com%2Fsissbruecker%2Flinkding%2Fissues%2Fnew&auto_close=&shared=true&archived=true

When i open this page, the checkboxes for "Mark as unread" and "Share" are already ticked.

@sissbruecker
Copy link
Owner

It can only prefill fields that are part of the form. There is no field for the archived state and I also don't think I want to add one. It seems quite niche, and for most users would just be one additional field that they might have to scroll over to get to the save button. I would be fine with a hidden input if someone really wants to prefill this through the URL, though they would not get any visual feedback.

Regarding the shared state I'm a bit confused by your description - you mention that it is preselected but there doesn't seem to be any logic that handles that. Though that could be added if someone wants to contribute.

@Strubbl
Copy link
Contributor Author

Strubbl commented Oct 12, 2024

Thank you for your response. I would like to check the box for a shared link automaticallly, because i always forget to set it manually. If there is any other way to check this box by default, this would be fine, too.

@sissbruecker sissbruecker added the enhancement New feature or request label Oct 16, 2024
@sissbruecker
Copy link
Owner

For reference, here is the PR that added the option to mark bookmarks as unread by default: #706

Should be straightforward to adapt this for the shared state as well, if someone wants to contribute this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants