Fix IRI.AddPath

This commit is contained in:
mariusor 2022-11-03 16:51:09 +01:00
parent 3f5197d77b
commit ff75b785ab
No known key found for this signature in database
GPG key ID: 35D8720425890EF7

2
iri.go
View file

@ -134,7 +134,7 @@ func (i *IRIs) GobDecode(data []byte) error {
// AddPath concatenates el elements as a path to i
func (i IRI) AddPath(el ...string) IRI {
return IRI(filepath.Clean(filepath.Join(i.String(), filepath.Join(el...))))
return IRI(i.String() + filepath.Clean(filepath.Join("/", filepath.Join(el...))))
}
// GetID