-
Notifications
You must be signed in to change notification settings - Fork 27k
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
<Link href="/link" /> forwards to "/link.txt" #48996
Comments
I'm having trouble with this stuff too. Discussion: Question in StackOverFlow: I also did output: "export" like you do. I'm waiting the soluition ;( |
it doesn't work either for export: standalone If anyone can suggest or provide fix would be good! |
ok i found the fix,
and it worked well for me. |
Oh GOD! Thanks. |
@hariria Nexta doesn't support App Router / output: 'export' yet. @MangoQuiz the reason it breaks for you is because you're using @dhruvilxcode |
@timneutkens Thank you for replying! I'm kinda newbie in web development. If you don't mind me asking, how can I use a static file server in details? Remove |
@timneutkens even without standalone export feature, it's not working for that too. Note: I am using middleware with appDir enabled. |
Please open a new issue with a complete reproduction 🙏 |
I fixed it too. |
even have downgraded to version
either wait for official fix or change from App Router to Page Router |
I have same problem here when I try to deploy SPA project( |
I have this issue using |
I confirm, this is a very strange behavior, I see that in the code for some reason make the concatenation of the path with |
This script solves your problem.
{
"start": "npx serve ./build/"
} |
@deyvisonborges I use |
This is fixed at least on 13.4.7, could you all please check that? |
I confirmed that the version |
This issue was indeed fixed in this PR: https://github.com/vercel/next.js/pull/50974/files#diff-7b6239af735eba0c401e1a0db1a04dd4575c19a031934f02d128cf3ac813757bR73-R81 @htakemoto happy to take a look at what you're running into, but can't reproduce it. Can you open a new issue that explains how to reproduce it? Thanks! |
- next/link로 page 이동시 뒤에 .link 확장자가 붙는 에러 때문에 downgrade 함 vercel/next.js#48996
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Verify canary release
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 21.5.0: Tue Apr 26 21:08:37 PDT 2022; root:xnu-8020.121.3~4/RELEASE_ARM64_T6000 Binaries: Node: 16.14.2 npm: 9.2.0 Yarn: 1.22.19 pnpm: 7.25.1 Relevant packages: next: 13.3.0 eslint-config-next: N/A react: N/A react-dom: N/A
Which area(s) of Next.js are affected? (leave empty if unsure)
Routing (next/router, next/navigation, next/link)
Link to the code that reproduces this issue
N/A
To Reproduce
next.config.js
[email protected]
)yarn build
to compile as a static site (viaoutput: 'export'
innext.config.js
)npx serve@latest out
Describe the Bug
The
<Link href="/docs" />
components I'm using redirect to "/docs.txt", not "/docs" for some reason. It only happens on static export as well (it's fine when I modify my next.config.js to be a non-static export).Similar to this: #48414 except I'm using [email protected] and they're using github pages.
Expected Behavior
Expect it to go to "/docs"
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
npx serve@latest out
The text was updated successfully, but these errors were encountered: