Merge branch 'main' of github.com:Team-1280/eeXiv

This commit is contained in:
Youwen Wu 2024-02-16 12:29:13 -08:00
commit bcf0a38b4e
2 changed files with 7 additions and 2 deletions

View file

@ -35,7 +35,7 @@ export default function News() {
> >
ISO 26324 DOI registry ISO 26324 DOI registry
</a> </a>
! {'!'}
</li> </li>
<li key={3}> <li key={3}>
eeXiv is currently under active development! There may be major eeXiv is currently under active development! There may be major
@ -48,7 +48,7 @@ export default function News() {
> >
our issue tracker our issue tracker
</a> </a>
. {'.'}
</li> </li>
<li key={4}> <li key={4}>
Want to upload your documents or just make yourself a profile on Want to upload your documents or just make yourself a profile on

View file

@ -112,6 +112,11 @@ export default function Page() {
router.push(input) router.push(input)
} }
if (data.length === 1) {
// auto redirect if only one result
handleRedirect(`/document/view/${data[0].id}`)
}
return ( return (
<div className='max-w-4xl mx-auto'> <div className='max-w-4xl mx-auto'>
<h1 className='text-xl mb-4 p-2'> <h1 className='text-xl mb-4 p-2'>