We’re using Next.js App Router in our project, which relies on dynamic route folders like [partnernummer] or [slug]. When such folders are part of a pull request in Bitbucket (Data Center), the affected files cannot be viewed in the diff – instead, we just see:
“This diff couldn’t be retrieved. Try reloading the page.”
This seems to be related to the square brackets in the folder names. Reloading doesn't help, and the error occurs consistently for any file inside a [bracket] folder. The Button "View the entire source as file" also returns HTTP 400 Bad Request.
This makes it impossible to review changes in these files through the Bitbucket UI.
Is there any known workaround or upcoming fix to support folders or filenames with brackets?
