Skip to content

Commit

Permalink
fix: collection forum posts (#2993)
Browse files Browse the repository at this point in the history
  • Loading branch information
meelrossi committed Dec 6, 2023
1 parent 05cec62 commit 0893f1e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/forum/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ import { ForumPost } from './types'
const MARKETPLACE_WEB_URL = config.get('MARKETPLACE_WEB_URL', '')

export function buildCollectionForumPost(collection: Collection, items: Item[], ownerName = ''): ForumPost {
const collectionURL = window.location.origin + locations.itemEditor({ collectionId: collection.id })
const basename = /^decentraland.(zone|org|today)$/.test(window.location.host) ? '/builder' : undefined
const collectionURL = `${window.location.origin}${basename || ''}${locations.itemEditor({ collectionId: collection.id })}`

// We only post in English
return {
Expand Down

1 comment on commit 0893f1e

@vercel
Copy link

@vercel vercel bot commented on 0893f1e Dec 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

builder – ./

builder-decentraland1.vercel.app
builder-git-master-decentraland1.vercel.app

Please sign in to comment.