ixartz / Astro-boilerplate

🚀 Astro boilerplate with responsive blog and portfolio template using TypeScript and React styled with Tailwind CSS ⚡️ Made with developer experience first: TypeScript + ESLint + Prettier + Husky + Lint-Staged + Commitlint + VSCode

Home Page:https://creativedesignsguru.com/demo/astro-boilerplate/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Inconsistency for trailing slash in links from BlogGallery and ProjectList

zzikkzzakk opened this issue · comments

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>

@zzikkzzakk Thank you for suggesting this change. It'll definitively make the output more consistent.

If you want, you can create a PR and I'll merge it.

Some are fixed here
#12

@Izocel has fixed the issue. Thank you!