mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-07 18:27:44 +02:00
UBER-532: Copy issue URL works wrong (#3529)
Signed-off-by: Maxim Karmatskikh <mkarmatskih@gmail.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<script lang="ts">
|
||||
import { copyTextToClipboard, createQuery } from '@hcengineering/presentation'
|
||||
import presentation, { copyTextToClipboard, createQuery } from '@hcengineering/presentation'
|
||||
import { getMetadata } from '@hcengineering/platform'
|
||||
import { Issue, IssueStatus } from '@hcengineering/tracker'
|
||||
import view from '@hcengineering/view'
|
||||
import {
|
||||
@@ -77,8 +78,9 @@
|
||||
const handleIssueOpened = () => {
|
||||
if (params?.issueUrl) {
|
||||
const url = new URL(params?.issueUrl)
|
||||
const frontUrl = getMetadata(presentation.metadata.FrontUrl) ?? window.location.origin
|
||||
|
||||
if (url.origin === window.location.origin) {
|
||||
if (url.origin === frontUrl) {
|
||||
navigate(parseLocation(url))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user