xblock_studio_url sends a course locator to library_handler for embedded legacy library blocks
Checked 2026-09-30: master source at ca039029e4918f02903b1c7d62adf8b3ad74f75b and release/verawood source at 18ce9a9c2b20c745b0ee94f615c13855acd9624b. Both carry this code path. This is a source diagnostic; no upstream full integration suite or production mutation ran.
The library-category branch passes the block's location.course_key directly to reverse_library_url. A legacy library reference block embedded in a course has a CourseLocator there, rather than a LibraryLocator. The library route cannot resolve that course key; rendering callers that ask for the block's Studio action URL can raise NoReverseMatch.
Reproduction: render a course/unit containing a legacy library reference block and request that block's Studio actions; inspect the library-category key passed to library_handler. Contrast it with a real legacy library root, whose key is a LibraryLocator.
Expected: preserve real library-root links, while returning no independent library Studio URL for the course-owned reference block (or resolve its actual library identity if supported). Test both key types and course/container branches.
The historical Verawood preview encountered the URL reversal failure; current source still routes the course key unconditionally. No new upstream-browser run is claimed. Duplicate checks: current issue/PR searches for xblock_studio_url and library_handler NoReverseMatch; old nested-block publishing PRs did not cover this key-type case.
Source: openedx/openedx-platform