on master help sign in
urls: better groups direction
commitbfb7da434f2c12227b1f64c476f84cbd2e44d345 authorHunter Miller <hunter@hmiller.dev> dateSat 29 Apr 2023, 20:21 (3 years ago) parent000ad6e
1 file changed+1−4
ui/src/utils.ts+1−4
ui/src/utils.ts+1−4
@@ -1,8 +1,5 @@
1−import { useQuery } from "@tanstack/react-query";
21import { stringToTa, uxToHex } from "@urbit/api";
32import { parseToRgba } from "color2k";
4−import api from "./api";
5−import { ChannelPreview } from "./types";
63
74export function encodeLookup(value: string | undefined) {
85 if (!value) {
@@ -75,7 +72,7 @@ export function refToURL(cite: string): string | { nest: string, where: string }
7572 if (type === 'group') {
7673 const ship = parts[2];
7774 const name = parts[3];
78− return `/apps/groups/groups/${ship}/${name}`;
75+ return `/apps/groups/find/${ship}/${name}`;
7976 }
8077
8178 const chanType = parts[2];