From 4bc0f88dd5052bcc87c8a145009728417b32170d Mon Sep 17 00:00:00 2001 From: Claudiu Cristea <clau.cristea@gmail.com> Date: Wed, 17 Aug 2022 14:10:50 +0300 Subject: [PATCH] ISAICP-7278: Don't check for file, it may be a page. --- .../src/Plugin/video_embed_field/Provider/InternalPath.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/modules/custom/joinup_video/src/Plugin/video_embed_field/Provider/InternalPath.php b/web/modules/custom/joinup_video/src/Plugin/video_embed_field/Provider/InternalPath.php index 97e8b01c3a..e42aaa80d3 100644 --- a/web/modules/custom/joinup_video/src/Plugin/video_embed_field/Provider/InternalPath.php +++ b/web/modules/custom/joinup_video/src/Plugin/video_embed_field/Provider/InternalPath.php @@ -22,14 +22,14 @@ class InternalPath extends ProviderPluginBase { * {@inheritdoc} */ public function renderEmbedCode($width, $height, $autoplay) { - $video_path = $this->getVideoId(); - if (UrlHelper::isExternal($video_path) || !file_exists($video_path)) { + $path = $this->getVideoId(); + if (UrlHelper::isExternal($path)) { return []; } return [ '#type' => 'video_embed_iframe', '#provider' => 'internal_path', - '#url' => Url::fromUri("internal:/$video_path") + '#url' => Url::fromUri("internal:/$path") ->setOption('base_url', $GLOBALS['base_url']) ->setAbsolute() ->toString(), -- GitLab