_redirects from path to query param

Hi,

I’m trying to create a redirect from path to query param on cloudflares pages. The redirect is working but the variable is not being added to the result path.

Here is my _redirects:
/example/:slug /example?slug=:slug

Expected result:
/example/test /example?slug=test

Current result:
/example/test /example?slug=%3Aslug

Am I’m doing something wrong?

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.