Skip to content

Commit

Permalink
[server] Add '/' before query params for an album's share URL
Browse files Browse the repository at this point in the history
  • Loading branch information
ashilkn committed Oct 26, 2024
1 parent e75913c commit 3b8c1ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/pkg/repo/public_collection.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
Expand Down

0 comments on commit 3b8c1ed

Please sign in to comment.