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

Returns the path of a playlist's page, /@owner/playlists/<slug>, or of the page with its editor open, one segment more.

Parameters

playlist: OwnedItem
optional
view: "edit"

Return Type

string

Usage

import { playlistPath } from "shared/paths.ts";