I’m using Mac OS 14.5, Chrome version 133.0.6943.142, and I’m using Asana as a web app.
There is a difference between right-clicking the ‘Copy task link’ feature on a ticket at the board level and accessing the ticket detail page to copy it.
Yes, what you’re seeing in the different links is the expected Asana behavior, not a bug: a link where the second parameter is not 0 represents a link to a task in a particular project, where the project id is that second parameter. A link where the second parameter is 0 represents a link to just the task itself.
Both are valid links assuming you have access to the project. I don’t know the details of how Notion might be interpreting things, but if the link with the project id leads to an error whereas the task-only link works, then it’s likely the user at the time doesn’t have access to the project.
(Also note that Asana is in the process of changing its link format; the links you showed will still work in the future, but very soon you’ll see a different format as described here.)