-
Notifications
You must be signed in to change notification settings - Fork 18
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
"osn number" missing from the images in the footer, causing hanging #799
Comments
Yes, it should have an OTT postfixed:
It's flat out not there:
An extra The URL parsing crashing is unfortunate, but I'm not sure what can be done to generically solve the problem. A global error handler would be nice, but I'm guessing there's a lot of other cases that would then need tidying up. |
Thanks. I'll add the |
Ah, that bit requires the OneZoom ID, not the OpenTree ID (because it's intended to specify an internal node, and nodes don't necessarily have OpenTree IDs. However, getting the OneZoom ID would require querying the DB: avoiding this was the reason to hard-code the URLs in the first place. Perhaps the best thing would be to allow a blank osn_ and within the tree viewer, fill it in from the OTT id if the osn_ is missing? We should also correct the documentation, where it says that the number is supposed to be an OTT, and document when it should instead be an OZid |
Possibly, but it's making a mechanism which is already a bit all over the shop even worse, as we have to hardcode which are OZid-y options in the page setup. Is there a sponsor URL we could link directly to, that will convert OTT->OZid if that's what's given? I'm guessing not though. |
I think the convention is that nodes are always OZids and leaves are always OTTids?
There's an API to convert OZ->OTT, I think. We could make a redirect page, I suppose? |
We can link directly to a node page given an OTTid: the link is of the form:
as opposed to using an OZid:
It would be easy, I guess, to pass the OTT somehow through the URL parser (e.g. hack it using a negative number?) |
We could, I suppose, clarify things in the URL parser by adopting some sort of convention, e.g. that an "at" sign (@) followed by a number means an OTT ID, and a plain number means an OZid? I don't know if/how this would mess with the current convention, though. I tend to think of "@" as giving a location. |
I was thinking of the links in the footer going directly to Changing the Given this though, it'd be a lot easier to also say "if the pinpoint is missing, use the main pinpoint" in the URL parser, rather than doing so later on once our pinpoint has been looked up. |
Ah yes, ISWYM. It's indeed quite reasonable to direct straight to the sponsor_node page. I guess I'll do that as a quick workaround. We can think about pinpoints at some later date. |
On beta, the images in the footer like this
Currently give a link like
https://beta.onezoom.org/life/@=965954?pop=osn_&init=jump
I think the the
osn_
should be followed by a number?A secondary bug is that when such a number is missing, the tree login hangs indefinitely. We need to fix this: I suspect @lentinj would be best placed to fix both problems?
The text was updated successfully, but these errors were encountered: