mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-13 10:47:19 +03:00
Change public/share path to /share
- DSub does not use the URL from the API response... :(
This commit is contained in:
parent
d5df102f9f
commit
dbf80d8592
@ -32,7 +32,7 @@ const (
|
||||
URLPathUI = "/app"
|
||||
URLPathNativeAPI = "/api"
|
||||
URLPathSubsonicAPI = "/rest"
|
||||
URLPathPublic = "/p"
|
||||
URLPathPublic = "/share"
|
||||
URLPathPublicImages = URLPathPublic + "/img"
|
||||
|
||||
// DefaultUILoginBackgroundURL uses Navidrome curated background images collection,
|
||||
|
@ -29,7 +29,7 @@ const defaultConfig = {
|
||||
devShowArtistPage: true,
|
||||
enableReplayGain: true,
|
||||
defaultDownsamplingFormat: 'opus',
|
||||
publicBaseUrl: '/p',
|
||||
publicBaseUrl: '/share',
|
||||
}
|
||||
|
||||
let config
|
||||
|
@ -7,8 +7,11 @@ export const baseUrl = (path) => {
|
||||
return parts.join('/')
|
||||
}
|
||||
|
||||
export const shareUrl = (path) => {
|
||||
const url = new URL(config.publicBaseUrl + '/' + path, window.location.href)
|
||||
export const shareUrl = (id) => {
|
||||
const url = new URL(
|
||||
baseUrl(config.publicBaseUrl + '/' + id),
|
||||
window.location.href
|
||||
)
|
||||
return url.href
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user