Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant open page if it has long url #26204

Closed
artursOs opened this issue Jun 16, 2021 · 2 comments · Fixed by #26221
Closed

Cant open page if it has long url #26204

artursOs opened this issue Jun 16, 2021 · 2 comments · Fixed by #26221
Labels
bug Issue was opened via the bug report template.

Comments

@artursOs
Copy link

artursOs commented Jun 16, 2021

What version of Next.js are you using?

11.0.0

What version of Node.js are you using?

14.16.0

What browser are you using?

Chrome

What operating system are you using?

macOs

How are you deploying your application?

next start

Describe the Bug

After updating next to 11.0.0. (last working version 10.1.3)

While in development mode following link is working http://localhost:3000/booking/f48a093378588a19f5519a6b2474cc5601ad12d8b1774535175ad31321e0909dc3c24301ce961d33a1a37058e6cf5d5d7a54f08500b83d8a398ac0b2d542ce77a9f86cdb66943b30df278b9733a412049bfa651f6b3d8046ad8ab01bfa78825020e4919a10bee6acc039617564648d355251496379bd30ff60e1640f141

but +1 char to that link will fail request with fall with 404 bad request

http://localhost:3000/booking/f48a093378588a19f5519a6b2474cc5601ad12d8b1774535175ad31321e0909dc3c24301ce961d33a1a37058e6cf5d5d7a54f08500b83d8a398ac0b2d542ce77a9f86cdb66943b30df278b9733a412049bfa651f6b3d8046ad8ab01bfa78825020e4919a10bee6acc039617564648d355251496379bd30ff60e1640f1411

Expected Behavior

should open and display page

To Reproduce

Create a new project via create-nextjs-app and create page in pages/booking/[slug].js

export default function Booking() {
    return (
       <>Hello world</>
    )
}

yarn dev

http://localhost:3000/booking/f48a093378588a19f5519a6b2474cc5601ad12d8b1774535175ad31321e0909dc3c24301ce961d33a1a37058e6cf5d5d7a54f08500b83d8a398ac0b2d542ce77a9f86cdb66943b30df278b9733a412049bfa651f6b3d8046ad8ab01bfa78825020e4919a10bee6acc039617564648d355251496379bd30ff60e1640f1411

@artursOs artursOs added the bug Issue was opened via the bug report template. label Jun 16, 2021
@ijjk
Copy link
Member

ijjk commented Jun 17, 2021

Hi, this has been updated in v11.0.1-canary.3 of Next.js, please upgrade and give it a try!

@balazsorban44
Copy link
Member

This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@vercel vercel locked as resolved and limited conversation to collaborators Jan 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue was opened via the bug report template.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants