links from work details to DDC/MDS after decimal broken
Join LibraryThing to post.
The decimal point is not being included in the link to /mds from a work page. For instance, from https://www.librarything.com/work/31200/workdetails/164587133 has MDS of 516.22, the links work properly for "Mathematics and Science", "Mathematics", and "Algebraic geometry", however the link for "Euclidean geometry" links to https://www.librarything.com/mds/5162 where it should link to https://www.librarything.com/mds/516.2 resulting in a "Not a valid MDS" error.
The last link works; what OP says is that the link before it doesn't work ('"Euclidean geometry" links to https://www.librarything.com/mds/5162').
Sorry, I wasn't clear.
Obviously the explicitly invalid link is invalid, and the explicitly valid link is valid.
However, the OP claims that the link from the work page is to the invalid target, and I find that it is to the valid target. The random existence of an invalid URL isn't a problem if it isn't linked from anywhere, and the situation described in the OP of the invalid URL being linked from the work page isn't one that I can reproduce.
I'm getting the problem exactly as described by OP:
Click on https://www.librarything.com/work/31200/workdetails/164587133
In the "DDC/MDS" section, click on "Euclidean geometry"
You're taken to https://www.librarything.com/mds/5162 which says "Not a valid MDS"
Aaaah, you click on the *words* rather than on the *number*. Gotcha. Yeah, that's broken for me too.
>6 r.orrison: Yep, there it is. I was missing that was the key, too. Thank you. That's a bug!
Here's what's going on: DDC classifications with a decimal in them (like "516.2" for example) are getting the decimal stripped out of the URL on just the word phrases for the classification. The link in the number itself is working fine, as observed above.
For devs, to reproduce:
- Go to the details page for this book: https://www.librarything.com/work/31200/workdetails/164587133
- Under DDC/MDS, click on either the words "Euclidean geometry".
- The URL should be this: https://www.librarything.com/mds/516.2
- Instead, it's linked to this: https://www.librarything.com/mds/5162, which does not exist, and will get you a "Not a valid MDS" page.
This topic is part of LibraryThing's in-talk bug tracking.
Join or watch Bug Collectors to get "Bug Tracking" under "The World" in Talk all the time.
Category: Work pages
Assigned to all
Reported by tecknicaltom
Mar 23, 3:06pm
61 days since last change
Reported. tecknicaltom (Mar 23, 3:06pm)
This topic is not marked as primarily about any work, author or other topic.