mirror of
https://github.com/umami-software/umami.git
synced 2026-02-23 22:15:35 +01:00
Update pt-BR. Reverted hostUrl change.
This commit is contained in:
parent
644ba448b0
commit
71c9d31f3b
4 changed files with 123 additions and 153 deletions
|
|
@ -15,7 +15,7 @@ import { WebsiteContext } from 'app/(main)/websites/[websiteId]/WebsiteProvider'
|
|||
|
||||
const generateId = () => getRandomChars(16);
|
||||
|
||||
export function ShareUrl({ onSave }: { websiteId: string; onSave?: () => void }) {
|
||||
export function ShareUrl({ hostUrl, onSave }: { hostUrl?: string; onSave?: () => void }) {
|
||||
const website = useContext(WebsiteContext);
|
||||
const { domain, shareId } = website;
|
||||
const { formatMessage, labels, messages } = useMessages();
|
||||
|
|
@ -26,7 +26,7 @@ export function ShareUrl({ onSave }: { websiteId: string; onSave?: () => void })
|
|||
});
|
||||
const { touch } = useModified();
|
||||
|
||||
const url = `${process.env.shareUrlHost || window?.location.origin || ''}${
|
||||
const url = `${hostUrl || window?.location.origin || ''}${
|
||||
process.env.basePath || ''
|
||||
}/share/${id}/${domain}`;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue