- 🇮🇳India mohit_aghera Rajkot
I tried to reproduce that by checking out 9.2.21 and then upgrading to 9.3.22
I added a file field and performed upgrade by doing code change.
I was not able to locate specific issues in core.Apart from that I'm somewhat uncertain about what part of core is breaking.
The patches seem to be pointing abouttemplate_preprocess_file_link()
I checked the code and it looks good on the latest 11.xMoreover the proposed code in patches is calling
createFileUrl()
on file entity.
Under the hood, it is doing the same thing.public function createFileUrl($relative = TRUE) { /** @var \Drupal\Core\File\FileUrlGeneratorInterface $file_url_generator */ $file_url_generator = \Drupal::service('file_url_generator'); return $relative ? $file_url_generator->generateString($this->getFileUri()) : $file_url_generator->generateAbsoluteString($this->getFileUri()); }
I believe we can close the issue.
Please reopen again if you notice the issue is happening again.
I'm happy to come up with the patch and fixes.