targetUrl: createTargetUrl()

in apps/chat/src/components/Chat/Publish/PublishWizard.tsx [291:308]


                  targetUrl: createTargetUrl(
                    type === SharingType.ConversationFolder ||
                      type === SharingType.Conversation
                      ? FeatureType.Chat
                      : type === SharingType.Application
                        ? FeatureType.Application
                        : FeatureType.Prompt,
                    trimmedPath,
                    type === SharingType.ConversationFolder ||
                      type === SharingType.PromptFolder
                      ? item.id.replace(folderOldPathPartsRegExp, '')
                      : item.id,
                    type,
                    versionsRef.current[item.id],
                  ),
                }))),
            ...(publishAction === PublishActions.DELETE
              ? selectedFiles.map((f) => ({