vitepress-theme-default-plus icon indicating copy to clipboard operation
vitepress-theme-default-plus copied to clipboard

fix(useCollection): use base url in index finder

Open mtdvlpr opened this issue 1 year ago • 2 comments

Currently, when a base url is configured, the findCurrentIndex function compares p.url (/relative-url) with route.path (/base/relative-url) which causes the current, previous and next pages to not be found.

This PR should fix that.

mtdvlpr avatar Apr 10 '24 07:04 mtdvlpr

Deploy Preview for vitepress-theme-default-plus failed. Why did it fail? →

Name Link
Latest commit b47a52a3d7bb753850f3badf75538641eebca6ca
Latest deploy log https://app.netlify.com/sites/vitepress-theme-default-plus/deploys/66fba221b8f8650008852651

netlify[bot] avatar Apr 10 '24 07:04 netlify[bot]

@pirog, could you please review this when you get the time? :)

mtdvlpr avatar May 08 '24 10:05 mtdvlpr

@pirog, could you please review this whenever you have time? :)

mtdvlpr avatar Oct 01 '24 07:10 mtdvlpr

https://github.com/lando/vitepress-theme-default-plus/pull/55

pirog avatar Oct 02 '24 00:10 pirog