Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.
Go dockerfossgomarkdownmemomicroblognote-takingnotesopen-sourceown-your-datareactself-hostedsqlitetimeline
chore: fix memo links
Stevenc8baeb86ec61
diff --git a/web/src/components/MemoActionMenu.tsx b/web/src/components/MemoActionMenu.tsxindex 788b60bcd..bf4149603 100644--- a/web/src/components/MemoActionMenu.tsx+++ b/web/src/components/MemoActionMenu.tsx@@ -24,7 +24,7 @@ const MemoActionMenu = (props: Props) => {const location = useLocation();const navigateTo = useNavigateTo();const memoStore = useMemoStore();- const isInMemoDetailPage = location.pathname.startsWith(`/m/${memo.name}`);+ const isInMemoDetailPage = location.pathname.startsWith(`/m/${memo.uid}`);const handleTogglePinMemoBtnClick = async () => {try {diff --git a/web/src/components/MemoContent/ReferencedContent/ReferencedMemo.tsx b/web/src/components/MemoContent/ReferencedContent/ReferencedMemo.tsxindex 57b98a8a4..e9dd66683 100644--- a/web/src/components/MemoContent/ReferencedContent/ReferencedMemo.tsx+++ b/web/src/components/MemoContent/ReferencedContent/ReferencedMemo.tsx@@ -31,7 +31,7 @@ const ReferencedMemo = ({ resourceId, params: paramsStr }: Props) => {const displayContent = paramsText || (memo.content.length > 12 ? `${memo.content.slice(0, 12)}...` : memo.content);const handleGotoMemoDetailPage = () => {- navigateTo(`/m/${memo.name}`);+ navigateTo(`/m/${memo.uid}`);};return (diff --git a/web/src/components/MemoView.tsx b/web/src/components/MemoView.tsxindex c8eeb5a8e..6954022ea 100644--- a/web/src/components/MemoView.tsx+++ b/web/src/components/MemoView.tsx@@ -45,7 +45,7 @@ const MemoView: React.FC<Props> = (props: Props) => {).length;const relativeTimeFormat = Date.now() - memo.displayTime!.getTime() > 1000 * 60 * 60 * 24 ? "datetime" : "auto";const readonly = memo.creator !== user?.name;- const isInMemoDetailPage = location.pathname.startsWith(`/m/${memo.name}`);+ const isInMemoDetailPage = location.pathname.startsWith(`/m/${memo.uid}`);// Initial related data: creator.useEffect(() => {