docs.page icon indicating copy to clipboard operation
docs.page copied to clipboard

Some nested redirects return "Error code: 522"

Open mateuszwojtczak opened this issue 11 months ago • 4 comments

Hi! We observed that some of our nested redirects from the old sections now return "Error code: 522".

For example, here is the redirect: /patrol/finders/advanced

And when you go to the actual page: https://patrol.leancode.co/patrol/finders/advanced You can see "Error code: 522".

This redirect works: https://docs.page/leancodepl/patrol/patrol/finders/advanced -> https://patrol.leancode.co/finders/advanced

So it looks like it doesn't work on custom domains. 🤔

mateuszwojtczak avatar Dec 09 '24 10:12 mateuszwojtczak

Thanks for flagging! Will investigate.

The full URL may work instead of relative as a workaround, but will check what's happening here.

Ehesp avatar Dec 10 '24 15:12 Ehesp

Also noticing this for my docs.page site: rearch.gsconrad.com.

It's unfortunate, since I am trying to use the redirection for locales as suggested here https://use.docs.page/locales#redirecting, but doing so breaks going to my custom domain.

Will try your suggested workaround (edit: didn't work. Will just duplicate my index.mdx and sidebar for now)

GregoryConrad avatar May 03 '25 17:05 GregoryConrad

My workaround for the index.mdx redirect failing was to duplicate my English index.mdx into /docs/index.mdx, followed by duplicating my English sidebar under the default sidebar: https://use.docs.page/locales#displaying-content. However, this is extremely hacky

GregoryConrad avatar May 03 '25 18:05 GregoryConrad

Still same problem, any updates?

Kendru98 avatar Jun 09 '25 14:06 Kendru98