You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is an inconsistent behaviour in links to posts:
From the ProjectList the links have a trailing slash, e.g. /posts/my-post/
in links from BlogGallery there is none, e.g. /posts/my-post
On production I need a trailing slash in all links.
So in astro.config.mjs I had to set trailingSlash: 'always'
and it worked.
And I had to append the trailing slash in the NavBar links, e.g. <NavMenuItem href="/posts/">Blog Posts</NavMenuItem>
The text was updated successfully, but these errors were encountered:
There is an inconsistent behaviour in links to posts:
From the ProjectList the links have a trailing slash, e.g.
/posts/my-post/
in links from BlogGallery there is none, e.g.
/posts/my-post
On production I need a trailing slash in all links.
So in
astro.config.mjs
I had to settrailingSlash: 'always'
and it worked.
And I had to append the trailing slash in the NavBar links, e.g.
<NavMenuItem href="/posts/">Blog Posts</NavMenuItem>
The text was updated successfully, but these errors were encountered: