function playlistUrl
playlistUrl(
playlist: OwnedItem,
view?: "edit"
): string

Returns the path of the page of playlist, /@owner/playlists/<slug>, or of the page with its editor open (playlistPath).

Parameters

playlist: OwnedItem
optional
view: "edit"

Return Type

string

Usage

import { playlistUrl } from "src/utils/shared/urls.ts";