From 3b8c1ed9e3d9841d8d95543b45f16ce63a13793b Mon Sep 17 00:00:00 2001 From: ashilkn Date: Sat, 26 Oct 2024 07:51:20 +0530 Subject: [PATCH] [server] Add '/' before query params for an album's share URL --- server/pkg/repo/public_collection.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/pkg/repo/public_collection.go b/server/pkg/repo/public_collection.go index 6c6106a77a2..91b96fca781 100644 --- a/server/pkg/repo/public_collection.go +++ b/server/pkg/repo/public_collection.go @@ -11,7 +11,7 @@ import ( "github.com/lib/pq" ) -const BaseShareURL = "https://albums.ente.io?t=%s" +const BaseShareURL = "https://albums.ente.io/?t=%s" // PublicCollectionRepository defines the methods for inserting, updating and // retrieving entities related to public collections @@ -32,7 +32,7 @@ func NewPublicCollectionRepository(db *sql.DB, albumHost string) *PublicCollecti } func (pcr *PublicCollectionRepository) GetAlbumUrl(token string) string { - return fmt.Sprintf("%s?t=%s", pcr.albumHost, token) + return fmt.Sprintf("%s/?t=%s", pcr.albumHost, token) } func (pcr *PublicCollectionRepository) Insert(ctx context.Context,