Skip to content

Commit

Permalink
Add / to end of routes so data can be prefetched
Browse files Browse the repository at this point in the history
  • Loading branch information
CannonLock committed Oct 22, 2024
1 parent 9a38446 commit dee2dff
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions web_ui/frontend/app/registry/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export default function Home() {
<Alert severity='info'>
<Typography variant={'body1'}>
Login to register new namespaces.
<Link href={'/login/?returnURL=/view/registry'}>
<Link href={'/login/?returnURL=/view/registry/'}>
<Button
sx={{ ml: 2 }}
variant={'contained'}
Expand Down Expand Up @@ -175,7 +175,7 @@ export default function Home() {
<Typography variant={'h6'} py={2}>
Namespaces
{approvedCacheData !== undefined && (
<Link href={'namespace/register'}>
<Link href={'namespace/register/'}>
<IconButton sx={{ ml: 0.5, mb: 0.5 }} size={'small'}>
<Add />
</IconButton>
Expand All @@ -197,14 +197,14 @@ export default function Home() {
approvedNamespaceData.length === 0 && (
<CreateNamespaceCard
text={'Register Namespace'}
url={'namespace/register'}
url={'namespace/register/'}
/>
)}

<Typography variant={'h6'} py={2}>
Origins
{approvedOriginData !== undefined && (
<Link href={'origin/register'}>
<Link href={'origin/register/'}>
<IconButton sx={{ ml: 0.5, mb: 0.5 }} size={'small'}>
<Add />
</IconButton>
Expand All @@ -226,14 +226,14 @@ export default function Home() {
approvedOriginData.length === 0 && (
<CreateNamespaceCard
text={'Register Origin'}
url={'origin/register'}
url={'origin/register/'}
/>
)}

<Typography variant={'h6'} py={2}>
Caches
{approvedCacheData !== undefined && (
<Link href={'cache/register'}>
<Link href={'cache/register/'}>
<IconButton sx={{ ml: 0.5, mb: 0.5 }} size={'small'}>
<Add />
</IconButton>
Expand All @@ -254,7 +254,7 @@ export default function Home() {
approvedCacheData.length === 0 && (
<CreateNamespaceCard
text={'Register Cache'}
url={'cache/register'}
url={'cache/register/'}
/>
)}
</Grid>
Expand Down
2 changes: 1 addition & 1 deletion web_ui/frontend/components/DataExportTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ export const GlobusDataExportCard = ({
marginRight={'0.5em'}
>
<Tooltip title='Configure Globus export'>
<Link href={'/origin/globus'}>
<Link href={'/origin/globus/'}>
<IconButton aria-label='Configure Globus Export'>
<Settings />
</IconButton>
Expand Down

0 comments on commit dee2dff

Please sign in to comment.