eleventy
eleventy copied to clipboard
Links in pagination object have double forward slash
Describe the bug
Most of the links given in the pagination object start with a double forward slash.
To Reproduce
paginate some data
look at pagination object.
links except href start with a double forward slash
Expected behavior The hrefs are correct, but the page links aren't.
https://github.com/11ty/eleventy/blob/d254269869837efd3f16a54489fb8221553a1945/src/Plugins/Pagination.js#L242
Seems to be adding a slash here - I'd guess the link already has one though?
Screenshots

Environment: MacOS 10.15.6 Eleventy 0.11
I've tested this on the eleventy base blog and it has the same issue.
Just to note this bug still seems to be present in Eleventy 2.0.