Inline the urlForLibrary function