This PR adds a trailing slash to all links in the breadcrumbs.
In addition, the following internal changes were done:
The breadcrumbs array returns an array of named structs (Breadcrumb) instead of OpenStruct.
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.
cc #174
This PR adds a trailing slash to all links in the breadcrumbs. In addition, the following internal changes were done:
Breadcrumb
) instead ofOpenStruct
.href
set tonil
, instead of having thelast: true
attribute. Rationale:/
- which means the link may be inappropriate anyway.