Replies: 5 comments 2 replies
-
I kind of also have this issue, with dynamic routes. I use
But accessing the dynamic page route through the When accessing the page directly with |
Beta Was this translation helpful? Give feedback.
-
My bad, in my case, i just misused Having my dynamic pages as |
Beta Was this translation helpful? Give feedback.
-
@iOiurson thank you that fixed my issue as well. Mine was a catch-all route: <Link href="/blog/[...slug]" as={`/blog/${slug}`}>
<a>Read</a>
</Link> |
Beta Was this translation helpful? Give feedback.
-
I'm using 'as' ->
Any thoughts from project team please? |
Beta Was this translation helpful? Give feedback.
-
I'm running into similar problems with pages in addition to index requiring .html in order to be visible (for example /test does not work but /test.html does). I'm not even doing anything fancy, just an additional static page without even any props. |
Beta Was this translation helpful? Give feedback.
-
Bug report
Describe the bug
On an exported site, the routing works via links however the URLs in browser do not get suffixed with .html and therefore if someone wishes to share a link, it does not work.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
<Link href="/test"><a>Visit test.js</a></Link>
on index.jsnext build && next export
/out
folder to static website hostingExpected behavior
Either the route in URL should be .html or the route when copied should work when shared.
System information
Beta Was this translation helpful? Give feedback.
All reactions