eleventy icon indicating copy to clipboard operation
eleventy copied to clipboard

Links in pagination object have double forward slash

Open edwardhorsford opened this issue 5 years ago • 1 comments

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 Screenshot 2020-08-09 at 17 59 00

Environment: MacOS 10.15.6 Eleventy 0.11

I've tested this on the eleventy base blog and it has the same issue.

edwardhorsford avatar Aug 09 '20 17:08 edwardhorsford

Just to note this bug still seems to be present in Eleventy 2.0.

edwardhorsford avatar Jan 05 '24 13:01 edwardhorsford