[server] Add '/' before query params for an album's share URL (#3843)

This commit is contained in:
Neeraj Gupta
2024-10-26 13:58:44 +05:30
committed by GitHub

View File

@@ -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,