From 1fb240ab9f9c837725298b5826f650dc5cd159a5 Mon Sep 17 00:00:00 2001
From: Jeff Sturek <jsturek@gmail.com>
Date: Wed, 11 Aug 2021 09:36:22 -0500
Subject: [PATCH] Fix absolute requirejs issue with import dcf-utilty

---
 www/index.php                   | 2 +-
 www/templates/5.0/embed.tpl.php | 7 +++++--
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/www/index.php b/www/index.php
index ad42efd..da2003f 100644
--- a/www/index.php
+++ b/www/index.php
@@ -1,5 +1,5 @@
 <?php
-$cacheVersion = date('Ymd');
+$cacheVersion = date('Ymd') . 'v';
 $search_engine_id = '015236299699564929946:nk1siew10ie';
 
 $config_file = __DIR__ . '/../config.sample.php';
diff --git a/www/templates/5.0/embed.tpl.php b/www/templates/5.0/embed.tpl.php
index 91ae496..e50f918 100644
--- a/www/templates/5.0/embed.tpl.php
+++ b/www/templates/5.0/embed.tpl.php
@@ -16,9 +16,12 @@
   </main>
 </body>
 <script>
+    require.config({
+        paths: { 'unlCMSJs': 'https://unlcms.unl.edu/wdn/templates_5.3/js/compressed' }
+    });
     require([
-      'https://unlcms.unl.edu/wdn/templates_5.3/js/compressed/dcf-utility.js',
-      'https://unlcms.unl.edu/wdn/templates_5.3/js/compressed/dcf-tabs.js'
+      'unlCMSJs/dcf-utility',
+      'unlCMSJs/dcf-tabs'
     ], function(DCFUtilityModule, DCFTabsModule) {
       try {
         // Try DCF ^3.0 format first, then 2.0 format
-- 
GitLab