Skip to content

Commit 51ad8d9

Browse files
authored
Merge pull request #5534 from decentraland/hotfix/2023-07-27
hotfix: PX spawn every time (#5531)
2 parents 5991944 + 1e09930 commit 51ad8d9

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

browser-interface/packages/lib/decentraland/profiles/transformations/profileToServerFormat.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ export function ensureAvatarCompatibilityFormat(profile: Readonly<Avatar | OldAv
2323
avatarInfo.emotes = avatar?.emotes
2424
avatarInfo.snapshots = avatar?.snapshots
2525

26+
if (profile.links) {
27+
profile.links.map(($) => ({ ...$, url: decodeURIComponent($.url) }))
28+
}
29+
2630
if (avatar && 'eyeColor' in avatar) {
2731
const eyes = stripAlpha(analizeColorPart(avatar, 'eyeColor', 'eyes'))
2832
const hair = stripAlpha(analizeColorPart(avatar, 'hairColor', 'hair'))

browser-interface/packages/unity-interface/portableExperiencesUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export async function getPortableExperienceFromUrn(sceneUrn: string): Promise<Lo
8888
const baseUrl: string = resolvedEntity.baseUrl || new URL('.', resolvedUrl).toString()
8989

9090
return {
91-
id: sceneUrn,
91+
id: removeQueryParamsFromUrn(sceneUrn),
9292
entity,
9393
baseUrl,
9494
parentCid: 'main'

0 commit comments

Comments
 (0)