notero: Zotero URI links result in "page not found" error

Describe the issue When clicking the link in a Zotero URI property in Notion, the user ends up on a Zotero error page with the error message: page not found.

To Reproduce Steps to reproduce the behavior:

  1. Go to a Notion page created by Notero that includes the Zotero URI property
  2. Click on the link in the Zotero URI property
  3. See the “page not found” error page

Expected behavior Clicking the link opens the desired item in the Zotero web library.

Screenshots

https://user-images.githubusercontent.com/299357/202096649-17264929-c22d-432f-a228-471cd99e3e1e.mp4

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 3
  • Comments: 18 (6 by maintainers)

Commits related to this issue

Most upvoted comments

Hi @dvanoni ,

my way for solving this issue is to use a chrome add-on called “URL redirect for developers” as a middle point to open the zotero application and find the item.

the code to import into the add-on is shown below:

{
  "settingsSchemaVersion": 1,
  "enabled": true,
  "removeCSPRules": [],
  "redirectRules": [
    {
      "enabled": true,
      "fromPattern": "*://www.zotero.org/{user}/items/{id}",
      "toPattern": "zotero://select/library/items/{id}"
    },
    {
      "enabled": true,
      "fromPattern": "http://zotero.org/users/{user}/items/{id}",
      "toPattern": "https://www.zotero.org/{user}/items/{id}"
    }
  ]
}

add the extension from chrome extension market image

click the import button and paste the codes shown above image

As long as the chrome open, click on the “zotero url” the chrome will redirect back to the zotero application and find the item it points to.

If you’re using Firefox, the extension Firefox Redirector provides a workaround. I had success with the following wildcard rule:

Redirect: https://www.zotero.org/users/*/items/* To: zotero://select/library/items/$2

it works for me since almost all the time when I use zotero, I also keep the chrome on.

https://user-images.githubusercontent.com/42455304/206180957-add78271-0981-4c1a-a6d1-6ef7e0bea2b2.mov

Hi. thanks for this awesome tool. I propose a little hint on README about this issue. I started using this plugin today and was confused about why the links were not working.

Thanks for the advice, going to play with this later today!

@austinmw, unfortunately, it looks like Notion still only supports http and https links.

You could try using the Chrome extension that @sheldon123z mentioned above with something like the following:

From: http://openProj/{projId} To: lt://openProj/{projId}

Then, when you paste one of those LiquidText links into Notion, you’d need to replace the leading lt with http so that Notion will recognize it as a link.

I haven’t used the extension myself, so I’m not sure if I have it quite right, but let me know if you give it a try!