Update group URLs to use slugs

This commit is contained in:
Alex Gleason
2023-04-17 15:42:08 -04:00
parent 1bce61182c
commit f2d5b2eaef
12 changed files with 27 additions and 21 deletions

View File

@ -80,7 +80,7 @@ const GroupPopover = (props: IGroupPopoverContainer) => {
</Stack>
<div className='px-4 pb-4'>
<Link to={`/groups/${group.id}`}>
<Link to={`/group/${group.slug}`}>
<Button type='button' theme='secondary' block>
{intl.formatMessage(messages.action)}
</Button>

View File

@ -253,7 +253,7 @@ const Status: React.FC<IStatus> = (props) => {
return (
<StatusInfo
avatarSize={avatarSize}
to={`/groups/${group.id}`}
to={`/group/${group.slug}`}
icon={<Icon src={require('@tabler/icons/circles.svg')} className='h-4 w-4 text-primary-600 dark:text-accent-blue' />}
text={
<Text size='xs' theme='muted' weight='medium'>