From 79faca4f6787c5848d73d819b672e546045ecc6e Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Sat, 15 Oct 2022 23:08:26 +0200 Subject: [PATCH] Sharing: Prefix album redirect URLs #840 #2466 Signed-off-by: Michael Mayer --- internal/api/auth_share.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/api/auth_share.go b/internal/api/auth_share.go index 5d982de1d..c743a41b5 100644 --- a/internal/api/auth_share.go +++ b/internal/api/auth_share.go @@ -32,7 +32,7 @@ func Shares(router *gin.RouterGroup) { clientConfig := conf.ClientShare() clientConfig.SiteUrl = fmt.Sprintf("%ss/%s", clientConfig.SiteUrl, token) - uri := conf.BaseUri("/albums") + uri := conf.BaseUri("/library/albums") c.HTML(http.StatusOK, "share.tmpl", gin.H{"shared": gin.H{"token": token, "uri": uri}, "config": clientConfig}) }) @@ -63,7 +63,7 @@ func Shares(router *gin.RouterGroup) { } } - uri := conf.BaseUri(path.Join("/albums", uid, shared)) + uri := conf.BaseUri(path.Join("/library/albums", uid, shared)) c.HTML(http.StatusOK, "share.tmpl", gin.H{"shared": gin.H{"token": token, "uri": uri}, "config": clientConfig}) })