Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[server] Add '/' before query params for an album's share URL

ashilkn3b8c1ed9e3d9
diff --git a/server/pkg/repo/public_collection.go b/server/pkg/repo/public_collection.go
index 6c6106a77a..91b96fca78 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,