linking to a specific part on PT - Printable Version +- LDraw.org Discussion Forums (https://forums.ldraw.org) +-- Forum: Administrative (https://forums.ldraw.org/forum-4.html) +--- Forum: Website Suggestions/Requests/Discussion (https://forums.ldraw.org/forum-23.html) +--- Thread: linking to a specific part on PT (/thread-28180.html) |
linking to a specific part on PT - Steffen - 2024-03-25 The previous (old) PT had the part filename in its URL when looking at the details of a part. The new one uses an independent scheme for the URLs, for example: the file 3010p0h.dat is stored on page https://library.ldraw.org/tracker/35126 Thus, it has become more difficult to link to a dedicated part file on the PT when you only know the part filename but not the internal index of the PT. Currently as a workaround you can use the "search" link, which takes a part filename as input. Example: https://library.ldraw.org/search/part?s=3010p0h.dat But executing that search * wastes unnecessary server time and also * may yield false positive results (i.e. all files which CONTAIN that character sequence). Thus I would like to request a specialized URL which will take me to a specific LDRAW file, for example https://library.ldraw.org/goto/3010p0h.dat or https://library.ldraw.org/goto/parts/3010p0h.dat The latter will force me to specify/know whether the file represents a part, primitive or subfile. That's probably a good solution, because we already have examples of filenames which occur both in the "p" and the "parts" folder. Thus, it would be good if the "goto" URL includes the folder. Maybe such an URL already exists and I just don't know it? RE: linking to a specific part on PT - Orion Pobursky - 2024-03-25 (2024-03-25, 21:53)Steffen Wrote: Maybe such an URL already exists and I just don't know it? Yup. Unofficial: https://library.ldraw.org/tracker/parts/3010p0h.dat Official: https://library.ldraw.org/official/parts/3001.dat Note: I've structured the library so that https://library.ldraw.org/ <tracker|official> /35126 will always point to 3010p0h.dat Official fixes get their own ID but when they become official that ID disappears and the fix is folded back into the original ID. RE: linking to a specific part on PT - Steffen - 2024-03-25 awesome. thanks a lot for freshing me up. I updated my post https://forums.ldraw.org/thread-28179-post-53577.html#pid53577 accordingly. |