- Issue created by @idflorin
- Status changed to Postponed: needs info
about 1 year ago 10:18am 3 October 2023 - 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
This is most likely related to changes in Drupal 10 core then, because the CDN module did not change 😬 Can you provide steps to reproduce? 🙏
- 🇷🇴Romania idflorin
@Wim Leers
Yes. It seems to me like something related to changes in Drupal 10 core.
I updated a drupal 9 installation to drupal 10 and the issue occurred again.
In the updating process I updated only the drupal core and this happened:
Head in Drupal 9<head> <meta charset="utf-8" /> <noscript><style>form.antibot * :not(.antibot-message) { display: none !important; }</style> </noscript><noscript><meta http-equiv="Refresh" content="0; URL=/big_pipe/no-js?destination=/node" /> </noscript><meta name="Generator" content="Drupal 9 (https://www.drupal.org)" /> <meta name="MobileOptimized" content="width" /> <meta name="HandheldFriendly" content="true" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link rel="icon" href="https://cdn.nodeid.org/favicon.ico" type="image/vnd.microsoft.icon" /> <link rel="alternate" type="application/rss+xml" title="" href="https://www.nodeid.org/rss.xml" /> <title>Home | Nodeid</title> <link rel="stylesheet" media="all" href="https://cdn.nodeid.org/sites/default/files/css/css_S-iAefsPpcMOPEdrzsWMAda5mxmTFJkH0HlYDHs6nXk.css" /> <link rel="stylesheet" media="screen" href="https://cdn.nodeid.org/sites/default/files/css/css_u4V41heglsayYslETOtLFTnSh16kC9YPM15eokMNuN0.css" /> <link rel="stylesheet" media="all" href="https://cdn.nodeid.org/sites/default/files/css/css_r0VHZ1sXlVr21ChFtJ0fx_RywacV9w086LLvrL8t5mc.css" /> <link rel="stylesheet" media="all" href="https://cdn.nodeid.org/sites/default/files/css/css_s9lDtI9R2QyQbhRHBjuFpbOU2jsOI98_LBWrjCjMDew.css" /> <link rel="stylesheet" media="all" href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" /> <link rel="stylesheet" media="all" href="https://cdn.nodeid.org/sites/default/files/css/css_hysBny5mLBcvGKsF50a4lcPT6eYGW1VKR1uDbMtJU7I.css" /> <link rel="stylesheet" media="all" href="https://cdn.nodeid.org/themes/businessplus_lite/css/components/messages.css?s2l0nd" /> <link rel="stylesheet" media="all" href="https://cdn.nodeid.org/sites/default/files/css/css_-6B26-lQ6j22DnsJbD_69teu9I9guP8umb5miNpMNvw.css" /> <link rel="stylesheet" media="all" href="//use.fontawesome.com/releases/v5.1.0/css/all.css" /> <link rel="stylesheet" media="print" href="https://cdn.nodeid.org/sites/default/files/css/css_dw-KdAXsVspyVbyzWtO7GXqJzvqCWVpJ0NRRV3g_wKQ.css" /> <link rel="stylesheet" media="all" href="//fonts.googleapis.com/css?family=Barlow:300,300i,400,400i,500,500i,600,600i,700,700i&amp;subset=latin-ext" /> <link rel="stylesheet" media="all" href="//fonts.googleapis.com/css?family=Source+Code+Pro&subset=latin,latin-ext" /> <link rel="stylesheet" media="all" href="//fonts.googleapis.com/css?family=PT+Serif:400,700,400italic,700italic&subset=latin,latin-ext" /> <link rel="stylesheet" media="all" href="https://cdn.nodeid.org/themes/businessplus_lite/css/theme/color-khaki.css?s2l0nd" /> <link rel="stylesheet" media="all" href="https://cdn.nodeid.org/sites/default/files/css/css_1sIOChGcNEBHLA_UkvGGsb3t5J3Tx3aW6JcIBF1Zn6Q.css" /> <script src="https://cdn.nodeid.org/core/misc/touchevents-test.js?v=9.5.11"></script> <script src="https://cdn.nodeid.org/core/assets/vendor/modernizr/modernizr.min.js?v=3.11.7"></script> <script src="https://cdn.nodeid.org/core/misc/modernizr-additional-tests.js?v=3.11.7"></script> </head>
The same Head in Drupal 10
<head> <meta charset="utf-8" /> <noscript><style>form.antibot * :not(.antibot-message) { display: none !important; }</style> </noscript><noscript><meta http-equiv="Refresh" content="0; URL=/big_pipe/no-js?destination=/node" /> </noscript><meta name="description" content="Get your free backlinks from the Node id website!" /> <meta name="keywords" content="node id, free backlinks, dofollow backlinks, backlinks, seo links" /> <link rel="shortlink" href="https://www.nodeid.org/" /> <link rel="canonical" href="https://www.nodeid.org/" /> <meta name="Generator" content="Drupal 10 (https://www.drupal.org)" /> <meta name="MobileOptimized" content="width" /> <meta name="HandheldFriendly" content="true" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link rel="icon" href="https://cdn.nodeid.org/favicon.ico" type="image/vnd.microsoft.icon" /> <link rel="alternate" type="application/rss+xml" title="" href="https://www.nodeid.org/rss.xml" /> <title>Nodeid</title> <link rel="stylesheet" media="all" href="https://cdn.nodeid.org//sites/default/files/css/css_XJcGBW3Pu2L40OPaSa1XTSHcLrLRyS7v371bIC45tBg.css?delta=0&language=en&theme=businessplus_lite&include=eJx9lMFyozAMhl8Iw2UvPfZJMsYooI2xvJKcNn36FQykoWN6wbI_SZb1awjE0A1cso9tZhoZRJpASeFTi487-j5xEdNNGnmIwtz1XqAJ0Ys8DvZsafwISyrLn4hnH_ELmr4IJmM5FrlEVOjGSL1lFX1Y4rHicEz1918BfrSUQi2ZEkXFXCGRwnYLyASgUvG52iP9BwjN4IJsF24N8EHxDuvjG2vEsu5o2zZ3hA_p1m8701BircJsT-HKeaIBnGfFUA1b8N7b1ZaSga8oU4cJ9WX7tC4T3YHRdEt1LqZJlMAAqc5LziSoSKccWEovNVoVxynlQ1cHNO5NykW43nO3rU0R4N1psVu0CdwUWZ7EyYAJmSfgwaLLElr4OUbPk8N16vve6OzTqsKvY75X4ocZ02XbravsVa5FNTIRayi659j3x8hnjFq_f0Htq2o_HUCCz_C-BNdGi7I134WhBnsiFWWfT_jL7FdooEjsbpO_4UmsOBzcn7dTKqZFgGCja3-ZU6-szsTGa9PjeMmYre7N-A9-sNkS" /> <link rel="stylesheet" media="all" href="https://cdn.nodeid.org//sites/default/files/css/css__nRK0t40CA-G7AiXcCx_bbGF3pk9Wv3gx6ldg2bZzQg.css?delta=1&language=en&theme=businessplus_lite&include=eJx9lMFyozAMhl8Iw2UvPfZJMsYooI2xvJKcNn36FQykoWN6wbI_SZb1awjE0A1cso9tZhoZRJpASeFTi487-j5xEdNNGnmIwtz1XqAJ0Ys8DvZsafwISyrLn4hnH_ELmr4IJmM5FrlEVOjGSL1lFX1Y4rHicEz1918BfrSUQi2ZEkXFXCGRwnYLyASgUvG52iP9BwjN4IJsF24N8EHxDuvjG2vEsu5o2zZ3hA_p1m8701BircJsT-HKeaIBnGfFUA1b8N7b1ZaSga8oU4cJ9WX7tC4T3YHRdEt1LqZJlMAAqc5LziSoSKccWEovNVoVxynlQ1cHNO5NykW43nO3rU0R4N1psVu0CdwUWZ7EyYAJmSfgwaLLElr4OUbPk8N16vve6OzTqsKvY75X4ocZ02XbravsVa5FNTIRayi659j3x8hnjFq_f0Htq2o_HUCCz_C-BNdGi7I134WhBnsiFWWfT_jL7FdooEjsbpO_4UmsOBzcn7dTKqZFgGCja3-ZU6-szsTGa9PjeMmYre7N-A9-sNkS" /> <link rel="stylesheet" media="all" href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" /> <link rel="stylesheet" media="all" href="https://cdn.nodeid.org//sites/default/files/css/css_QRx2OI87KCjfVTCtcf84ZCXLZJyN3UfyuCrCq1DGHfQ.css?delta=3&language=en&theme=businessplus_lite&include=eJx9lMFyozAMhl8Iw2UvPfZJMsYooI2xvJKcNn36FQykoWN6wbI_SZb1awjE0A1cso9tZhoZRJpASeFTi487-j5xEdNNGnmIwtz1XqAJ0Ys8DvZsafwISyrLn4hnH_ELmr4IJmM5FrlEVOjGSL1lFX1Y4rHicEz1918BfrSUQi2ZEkXFXCGRwnYLyASgUvG52iP9BwjN4IJsF24N8EHxDuvjG2vEsu5o2zZ3hA_p1m8701BircJsT-HKeaIBnGfFUA1b8N7b1ZaSga8oU4cJ9WX7tC4T3YHRdEt1LqZJlMAAqc5LziSoSKccWEovNVoVxynlQ1cHNO5NykW43nO3rU0R4N1psVu0CdwUWZ7EyYAJmSfgwaLLElr4OUbPk8N16vve6OzTqsKvY75X4ocZ02XbravsVa5FNTIRayi659j3x8hnjFq_f0Htq2o_HUCCz_C-BNdGi7I134WhBnsiFWWfT_jL7FdooEjsbpO_4UmsOBzcn7dTKqZFgGCja3-ZU6-szsTGa9PjeMmYre7N-A9-sNkS" /> <link rel="stylesheet" media="all" href="https://cdn.nodeid.org/themes/businessplus_lite/css/components/messages.css?s2l0wf" /> <link rel="stylesheet" media="all" href="https://cdn.nodeid.org//sites/default/files/css/css_ZBLnZ5RoDPHIbfzzFOoxTBAcarhowslEjPyzcHjLUtA.css?delta=5&language=en&theme=businessplus_lite&include=eJx9lMFyozAMhl8Iw2UvPfZJMsYooI2xvJKcNn36FQykoWN6wbI_SZb1awjE0A1cso9tZhoZRJpASeFTi487-j5xEdNNGnmIwtz1XqAJ0Ys8DvZsafwISyrLn4hnH_ELmr4IJmM5FrlEVOjGSL1lFX1Y4rHicEz1918BfrSUQi2ZEkXFXCGRwnYLyASgUvG52iP9BwjN4IJsF24N8EHxDuvjG2vEsu5o2zZ3hA_p1m8701BircJsT-HKeaIBnGfFUA1b8N7b1ZaSga8oU4cJ9WX7tC4T3YHRdEt1LqZJlMAAqc5LziSoSKccWEovNVoVxynlQ1cHNO5NykW43nO3rU0R4N1psVu0CdwUWZ7EyYAJmSfgwaLLElr4OUbPk8N16vve6OzTqsKvY75X4ocZ02XbravsVa5FNTIRayi659j3x8hnjFq_f0Htq2o_HUCCz_C-BNdGi7I134WhBnsiFWWfT_jL7FdooEjsbpO_4UmsOBzcn7dTKqZFgGCja3-ZU6-szsTGa9PjeMmYre7N-A9-sNkS" /> <link rel="stylesheet" media="all" href="//use.fontawesome.com/releases/v5.1.0/css/all.css" /> <link rel="stylesheet" media="print" href="https://cdn.nodeid.org//sites/default/files/css/css_vpLs-TEuy_xLiIKVnsHm_-nn9xMuOBrw60VAf0VgeMY.css?delta=7&language=en&theme=businessplus_lite&include=eJx9lMFyozAMhl8Iw2UvPfZJMsYooI2xvJKcNn36FQykoWN6wbI_SZb1awjE0A1cso9tZhoZRJpASeFTi487-j5xEdNNGnmIwtz1XqAJ0Ys8DvZsafwISyrLn4hnH_ELmr4IJmM5FrlEVOjGSL1lFX1Y4rHicEz1918BfrSUQi2ZEkXFXCGRwnYLyASgUvG52iP9BwjN4IJsF24N8EHxDuvjG2vEsu5o2zZ3hA_p1m8701BircJsT-HKeaIBnGfFUA1b8N7b1ZaSga8oU4cJ9WX7tC4T3YHRdEt1LqZJlMAAqc5LziSoSKccWEovNVoVxynlQ1cHNO5NykW43nO3rU0R4N1psVu0CdwUWZ7EyYAJmSfgwaLLElr4OUbPk8N16vve6OzTqsKvY75X4ocZ02XbravsVa5FNTIRayi659j3x8hnjFq_f0Htq2o_HUCCz_C-BNdGi7I134WhBnsiFWWfT_jL7FdooEjsbpO_4UmsOBzcn7dTKqZFgGCja3-ZU6-szsTGa9PjeMmYre7N-A9-sNkS" /> <link rel="stylesheet" media="all" href="//fonts.googleapis.com/css?family=Barlow:300,300i,400,400i,500,500i,600,600i,700,700i&amp;subset=latin-ext" /> <link rel="stylesheet" media="all" href="//fonts.googleapis.com/css?family=Source+Code+Pro&subset=latin,latin-ext" /> <link rel="stylesheet" media="all" href="//fonts.googleapis.com/css?family=PT+Serif:400,700,400italic,700italic&subset=latin,latin-ext" /> <link rel="stylesheet" media="all" href="https://cdn.nodeid.org/themes/businessplus_lite/css/theme/color-khaki.css?s2l0wf" /> <link rel="stylesheet" media="all" href="https://cdn.nodeid.org//sites/default/files/css/css_tBGd48turajVB6uDHzhjABVcCnAZNV10ctMwcSpJ3PI.css?delta=12&language=en&theme=businessplus_lite&include=eJx9lMFyozAMhl8Iw2UvPfZJMsYooI2xvJKcNn36FQykoWN6wbI_SZb1awjE0A1cso9tZhoZRJpASeFTi487-j5xEdNNGnmIwtz1XqAJ0Ys8DvZsafwISyrLn4hnH_ELmr4IJmM5FrlEVOjGSL1lFX1Y4rHicEz1918BfrSUQi2ZEkXFXCGRwnYLyASgUvG52iP9BwjN4IJsF24N8EHxDuvjG2vEsu5o2zZ3hA_p1m8701BircJsT-HKeaIBnGfFUA1b8N7b1ZaSga8oU4cJ9WX7tC4T3YHRdEt1LqZJlMAAqc5LziSoSKccWEovNVoVxynlQ1cHNO5NykW43nO3rU0R4N1psVu0CdwUWZ7EyYAJmSfgwaLLElr4OUbPk8N16vve6OzTqsKvY75X4ocZ02XbravsVa5FNTIRayi659j3x8hnjFq_f0Htq2o_HUCCz_C-BNdGi7I134WhBnsiFWWfT_jL7FdooEjsbpO_4UmsOBzcn7dTKqZFgGCja3-ZU6-szsTGa9PjeMmYre7N-A9-sNkS" /> <script src="https://cdn.nodeid.org//sites/default/files/js/js_aaf5tEEXs1Jg45uyXRZm0ZkcWaW4U7Ao6vFYfSTnSf4.js?scope=header&delta=0&language=en&theme=businessplus_lite&include=eJx9lMFyozAMhl8Iw2UvPfZJMsYooI2xvJKcNn36FQykoWN6wbI_SZb1awjE0A1cso9tZhoZRJpASeFTi487-j5xEdNNGnmIwtz1XqAJ0Ys8DvZsafwISyrLn4hnH_ELmr4IJmM5FrlEVOjGSL1lFX1Y4rHicEz1918BfrSUQi2ZEkXFXCGRwnYLyASgUvG52iP9BwjN4IJsF24N8EHxDuvjG2vEsu5o2zZ3hA_p1m8701BircJsT-HKeaIBnGfFUA1b8N7b1ZaSga8oU4cJ9WX7tC4T3YHRdEt1LqZJlMAAqc5LziSoSKccWEovNVoVxynlQ1cHNO5NykW43nO3rU0R4N1psVu0CdwUWZ7EyYAJmSfgwaLLElr4OUbPk8N16vve6OzTqsKvY75X4ocZ02XbravsVa5FNTIRayi659j3x8hnjFq_f0Htq2o_HUCCz_C-BNdGi7I134WhBnsiFWWfT_jL7FdooEjsbpO_4UmsOBzcn7dTKqZFgGCja3-ZU6-szsTGa9PjeMmYre7N-A9-sNkS"></script> </head>
As you can see the double slash is again.
href="https://cdn.nodeid.org//sites/default/files/css/css_XJcGBW3Pu2
- 🇧🇪Belgium Erwin De Vylder
I have the same problem.
Steps to reproduce:
composer create-project drupal/recommended-project my_site_name cd my_site_name/ composer require 'drupal/cdn:4.0.1' composer require 'drush/drush:^11.0' drush si drush en cdn cdn_ui
Make sure aggregate CSS & JS is enabled on /admin/config/development/performance.
Now, surf to /admin/config/services/cdn and enable simple mapping. Serve all files from
and set status to Enabled.Result: CSS & JS aggregates have an extra slash inserted.
- 🇧🇪Belgium Erwin De Vylder
Looks like it may be a core issue indeed.
In D9.5, core is passing uri's of the form public://css/css_aBcDe... to FileUrlGenerator.
From D10.0 onwards, core is passing uri's of the form /css/css_aBcDe... to FileUrlGenerator.
- 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
I'm >95% confident this is fixed by 🐛 FileUrlGenerator::transformRelative() edge case errors Fixed . Can you either apply that patch or wait for Drupal 10.2.1 to be released, and report back? 🙏
Thanks!
- 🇷🇴Romania idflorin
For me, on several websites:
Updating to Drupal 10.2 and CDN 4.0.2 fixed this issue.
Before:
<link rel="stylesheet" media="all" href="https://cdn.panorica.com//sites/default/files/css/css_LrMQzGJhPNST
After update:
<link rel="stylesheet" media="all" href="https://cdn.panorica.com/sites/default/files/css/css_ty1ciNPjQlGzCA
- 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
@idflorin Then it must've been fixed by another fix in Drupal core because version 4.0.2 did not change anything in this regard 😅
I'll wait for one more confirmation before closing this. Ideally somebody would test with Drupal 10.1.7 too 🙏
- 🇷🇴Romania idflorin
@
Drupal core 10.1.7 and CDN 4.0.2 fixed the double slash
Before
<link rel="stylesheet" media="all" href="https://cdn.spare-wheel.com//sites/default/files/css/css_0rV
After
<link rel="stylesheet" media="all" href="https://cdn.spare-wheel.com/sites/default/files/css/css_eA3WM7REU
- 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
@idflorin Yay! I can't seem to find which change in https://www.drupal.org/project/drupal/releases/10.1.7 → would have fixed this though.
Which makes me wonder if it's been fixed for longer 🤔
Which Drupal core version did you update from?
- 🇧🇪Belgium Erwin De Vylder
@idflorin you need to test using CDN module version 4.0.1. Version 4.0.2 contains a dirty fix for this very issue :-)
# Dirty fix until https://www.drupal.org/project/cdn/issues/3388223 is fixed if (str_starts_with($uri, '/sites/default/files/css/') || str_starts_with($uri, '/sites/default/files/js/')) { $uri = substr($uri, 1); }
I did some checks on my side:
10.1.4 + CDN 4.0.1 -> double slash
10.1.4 + CDN 4.0.2 -> no double slash
10.1.7 + CDN 4.0.1 -> double slash
10.1.7 + CDN 4.0.2 -> no double slashSo, nothing's fixed in 10.1.7.
- 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
Version 4.0.2 contains a dirty fix for this very issue :-)
Eh? 😅 What is that dirty fix then? 😄
- 🇧🇪Belgium Erwin De Vylder
Oh. OMG. That was MY dirty fix 🙄 Guess I misinterpreted the diff, probably due to a lack of caffeine :-)
Anyways. This is the very commit that seems to fix the issue in CDN 4.0.2: https://git.drupalcode.org/project/cdn/-/commit/f6f3d0b5111aeaefe9443afa...
Ergo: the issue is fixed in CDN 4.0.2. Hooray!
- 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
Hahahaha 🤣
The commit you linked is from April … and OMG you're right, that had not yet shipped!? 😱 I'm so sorry!
Conclusion: this is a duplicate of 📌 10.1.x compatibility: tests are failing against Drupal 10.1.x due to upstream changes Fixed , but it's my fault for not having tagged a release including that sooner. Very sorry 🙈
Credited you both!
- Status changed to Fixed
10 months ago 1:47pm 9 January 2024 Automatically closed - issue fixed for 2 weeks with no activity.