felix-berlin / astro-breadcrumbs

Well configurable breadcrumb component for Astro.js. Create breadcrumbs completely dynamically or specify exactly how they should look.
https://docs.astro-breadcrumbs.kasimir.dev
GNU General Public License v3.0
51 stars 7 forks source link

Resolving Trailing Slash Issue in Breadcrumbs Links #212

Open shah-iq opened 3 months ago

shah-iq commented 3 months ago

I'm encountering an issue with the using astro-breadcrumbs with Astrowind template on my website. I'm using the astro-breadcrumbs integration to display breadcrumbs. However, after running the build command pnpm run build, the links in the breadcrumbs are having trailing slashes appended to them, despite having set the trailing slash option to "never." Additionally, I've included trailingSlash={false} in the Breadcrumb component for added assurance. It seems the problem only pertains to the links generated by the breadcrumbs. Can you suggest any potential solutions?

felix-berlin commented 3 months ago

Hi @shah-iq thanks for creating this issue. Do you have a link to your repo?

shah-iq commented 3 months ago

Hi @shah-iq thanks for creating this issue. Do you have a link to your repo?

Actually this is a project for a client and is a private repo

felix-berlin commented 3 months ago

@shah-iq I will check this issue within this (hopefully) week. By the way the traillingSlash prop has been deprecated since V2. Please make sure you read the Migration Guide https://docs.astro-breadcrumbs.kasimir.dev/guides/migration-to-v2/

felix-berlin commented 3 months ago

Did you use the current release?

shah-iq commented 3 months ago

Did you use the current release?

Yes I am using the latest release and I used the traillingSlash prop only to just double check if by any chance resolved the issue. I had seen the migration guide that this prop had been deprecated.