Skip to content

fix(common): show hidden playlists via permalink for logged-out users#14374

Closed
dylanjeffers wants to merge 1 commit into
mainfrom
fix/hidden-playlist-permalink
Closed

fix(common): show hidden playlists via permalink for logged-out users#14374
dylanjeffers wants to merge 1 commit into
mainfrom
fix/hidden-playlist-permalink

Conversation

@dylanjeffers
Copy link
Copy Markdown
Contributor

Summary

  • Logged-out users hitting a direct link to a hidden (is_private) playlist were getting a not-found page. The backend filters out private playlists from permalink lookups for anonymous users, but ID-based lookups honor direct-link access.
  • When the permalink lookup returns nothing in useCollectionByPermalink.ts, retry with the id encoded in the slug. A permalink === permalink check guards against id-in-slug collisions.

Test plan

  • Unit tests for the four paths (success, hidden fallback, collision guard, unparseable slug) — packages/common vitest
  • Manual: open a hidden playlist permalink in an incognito window and confirm it renders
  • Manual: open a public playlist permalink (regression check)

🤖 Generated with Claude Code

The backend filters out is_private playlists from permalink lookups
for anonymous users, but ID-based lookups bypass that filter. When a
permalink lookup returns nothing, retry with the id encoded in the
slug so anyone with the direct link can view the playlist.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 21, 2026

⚠️ No Changeset found

Latest commit: 2190165

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions
Copy link
Copy Markdown
Contributor

🌐 Web preview ready

Preview URL: https://audius-web-preview-pr-14374.audius.workers.dev

Unique preview for this PR (deployed from this branch).
Workflow run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant