Skip to content
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

refactor: crumb generation #187

Merged

Conversation

felix-berlin
Copy link
Owner

BREAKING CHANGE: baseUrl and trailingSlash properties are now deprecated. Both values are now obtained directly from Astro Config.

BREAKING CHANGE: baseUrl and trailingSlash properties are now deprecated. Both values are now obtained directly from Astro Config.
@felix-berlin felix-berlin self-assigned this Feb 2, 2024
@felix-berlin felix-berlin linked an issue Feb 2, 2024 that may be closed by this pull request
Copy link

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 158df4d
Status: ✅  Deploy successful!
Preview URL: https://f5a3cd5d.astro-breadcrumbs-docs.pages.dev
Branch Preview URL: https://185-wrong-behavior-when-usin.astro-breadcrumbs-docs.pages.dev

View logs

Copy link

codecov bot commented Feb 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (6ab6630) 67.30% compared to head (158df4d) 51.41%.

Additional details and impacted files
@@             Coverage Diff             @@
##             main     #187       +/-   ##
===========================================
- Coverage   67.30%   51.41%   -15.89%     
===========================================
  Files           4        3        -1     
  Lines         263      177       -86     
  Branches       28       10       -18     
===========================================
- Hits          177       91       -86     
  Misses         86       86               

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@felix-berlin felix-berlin merged commit 948bf2a into main Feb 2, 2024
7 checks passed
@felix-berlin felix-berlin deleted the 185-wrong-behavior-when-using-a-base-url-different-from branch February 2, 2024 16:20
@felix-berlin
Copy link
Owner Author

🎉 This PR is included in version 2.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@mpepito13
Copy link

Great job thank you

@felix-berlin
Copy link
Owner Author

@mpepito13 thx <3

I am still working on the Docs update. Should be finished today.

@DavithkbY
Copy link

Can you add this feature back please?
My is a headless frontend for Drupal and Strapi.
I have basicly 2 baseurls for the breadcrums:
/strapi/en/about-us
/drupal/en/about-us

But both should only show About Us as the breadcrumb. With the remove of the baseUrl parameter this is not possible anymore. @felix-berlin

@felix-berlin
Copy link
Owner Author

@DavithkbY i created a new issue for this.

Unfortunately, I can't promise you that. As soon as I start working more actively on this project again, I'll look for a suitable solution.

@DavithkbY
Copy link

@felix-berlin the old solution was kind of perfect :) But thank you for looking into it .

@felix-berlin
Copy link
Owner Author

@DavithkbY I see, I'm sorry that it's no longer the case.

Until then, you should be fine with v1.

@felix-berlin
Copy link
Owner Author

@DavithkbY after this PR, the base url feature is back :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong behavior when using a base URL different from /
3 participants