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

Update breadcrumbs href with a trailing slash #175

Merged
merged 3 commits into from
Apr 10, 2024

Conversation

DannyBen
Copy link
Owner

@DannyBen DannyBen commented Apr 10, 2024

cc #174


This PR adds a trailing slash to all links in the breadcrumbs.
In addition, the following internal changes were done:

  1. The breadcrumbs array returns an array of named structs (Breadcrumb) instead of OpenStruct.
  2. The last breadcrumb will have its href set to nil, instead of having the last: true attribute.
    Rationale:
    • The last element is never a link
    • The last element is the only element that can either be a file or a folder, and all links end with a / - which means the link may be inappropriate anyway.

@DannyBen DannyBen merged commit 540020d into master Apr 10, 2024
6 checks passed
@DannyBen DannyBen deleted the add/breadcrumbs-trailing-slash branch April 10, 2024 04:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant