feat: add share url alias /s

This commit is contained in:
Elias Schneider
2023-07-22 16:09:10 +02:00
parent 7827b687fa
commit 231a2e95b9
9 changed files with 27 additions and 10 deletions

View File

@@ -15,7 +15,7 @@ const showShareInformationsModal = (
maxShareSize: number
) => {
const t = translateOutsideContext();
const link = `${appUrl}/share/${share.id}`;
const link = `${appUrl}/s/${share.id}`;
let shareSize: number = 0;
for (let file of share.files as FileMetaData[])

View File

@@ -8,7 +8,7 @@ const showShareLinkModal = (
appUrl: string
) => {
const t = translateOutsideContext();
const link = `${appUrl}/share/${shareId}`;
const link = `${appUrl}/s/${shareId}`;
return modals.openModal({
title: t("account.shares.modal.share-link"),
children: (

View File

@@ -30,7 +30,7 @@ const Body = ({ share, appUrl }: { share: Share; appUrl: string }) => {
const router = useRouter();
const t = useTranslate();
const link = `${appUrl}/share/${share.id}`;
const link = `${appUrl}/s/${share.id}`;
return (
<Stack align="stretch">

View File

@@ -168,8 +168,7 @@ const CreateUploadModalBody = ({
color: theme.colors.gray[6],
})}
>
{options.appUrl}/share/
{form.values.link == "" ? "myAwesomeShare" : form.values.link}
{`${options.appUrl}/s/${form.values.link}`}
</Text>
{!options.isReverseShare && (
<>