-
Notifications
You must be signed in to change notification settings - Fork 71
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
Bookmarklet does not work, only opens create/manage page #3601
Comments
Hello Cody! You may prefer to use our full-featured browser extension: https://chromewebstore.google.com/detail/permacc/bigjakhahgnccheaompmgebkncglllel?pli=1 The bookmarklet (which was written a long time ago), indeed, has only very limited functionality. It does not automatically trigger the creation of a Perma Link. It should, in fact, open a new tab, give it focus, and redirect to https://perma.cc/manage/create ..... but, the URL should be auto-populated into the form for you, so all you have to do is click the create button. |
I haven't succeeded in having the bookmarklet to auto-populate the URL into the form. I examined Using the Firefox debugger and loading https://perma.cc/manage/create?url=https%3A%2F%2Fwww.northeastern.edu, I got to the perma/perma_web/static/js/create-link.module.js Lines 434 to 439 in a466172
When my Firefox gets to line 434, it tries to get the URL input text box, but that does not exist yet. So perma/perma_web/static/js/create-link.module.js Lines 296 to 301 in a466172
Then, after the page loads, the URL in the address bar is rewritten to omit the |
Thanks for this debugging, Cody! We think we just deployed a fix: we are in the middle of a gradual migration to a VueJS-mediated frontend, and this functionality slipped through the cracks. We believe the bookmarket is now back in gear! |
Hrm... It doesn't seem to be working for me. Has the change been deployed yet? I tried a hard refresh of the perma.cc create new link page with no luck. The bookmarklet generates this URL for https://www.northeastern.edu: |
@codydunne I'm so sorry: I jumped the gun and this is still in QA 😳. I will message again when it is actually deployed. |
@codydunne The update is in fact now deployed. |
That works! Thank you! I tested it in Edge, and it works as expected. In Firefox, it is blocked by the built-in pop-up blocker. |
The bookmarklet listed at https://perma.cc/settings/tools does not work for me. It only opens a new tab, gives it focus, and redirects to https://perma.cc/manage/create without creating a perma link.
This is the code I see for the bookmarklet:
I've tried using the bookmarklet in the latest Firefox and Edge on Windows 11.
The text was updated successfully, but these errors were encountered: