Skip to content

Commit

Permalink
[server] Add '/' before query params for an album's share URL (#3843)
Browse files Browse the repository at this point in the history
  • Loading branch information
ua741 authored Oct 26, 2024
2 parents e75913c + 3b8c1ed commit a830026
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 a830026

Please sign in to comment.