Relative Content

Tag Archive for next.jscontentfulgetstaticpaths

How to Preserve Slashes in Contentful Slugs with Next.js

I am using Contentful and Next.js in my project. The slugs I receive from Contentful contain slashes (e.g., news-insights/blogname). However, when I fetch these slugs and try to build the pages, the slashes are encoded as %2F.