diff --git a/modules/next/src/Plugin/Next/PreviewUrlGenerator/SimpleOauth.php b/modules/next/src/Plugin/Next/PreviewUrlGenerator/SimpleOauth.php index 1ec530724..106803f16 100644 --- a/modules/next/src/Plugin/Next/PreviewUrlGenerator/SimpleOauth.php +++ b/modules/next/src/Plugin/Next/PreviewUrlGenerator/SimpleOauth.php @@ -127,6 +127,9 @@ public function submitConfigurationForm(array &$form, FormStateInterface $form_s public function generate(NextSiteInterface $next_site, EntityInterface $entity, string $resource_version = NULL): ?Url { $query = []; $query['path'] = $path = $entity->toUrl()->toString(); + if($resource_version) { + $query['path'] = $query['path'].'?resourceVersion='.$resource_version; + } // Create a secret based on the timestamp, path, scope and resource version. $query['timestamp'] = $timestamp = $this->time->getRequestTime();