Environment
Problem
The SwaggerUI shortcode doesn't work anymore.
On my browser's console (I also tested it on several browsers), I have this error:
Uncaught ReferenceError: SwaggerUIBundle is not defined
onload http://localhost:1313/docs/test-swagger/:227
Then, when I check the network console, I can see the following issues:

It seems the URL used (e.g., https://unpkg.com/swagger-ui-dist@5.1.0/swagger-ui.css) to get the JS artifacts are now blocked.
I tested it on a fresh setup of the docsy example.
The JS and CSS are indeed not unpackaged in the public folder.
Here is the way to reproduce this issue:
- Checkout the docsy example as explained on the documentation (w/ hugo modules)
- Create the folder
my-new-site/content/en/docs/test-swagger
- Add the following page:
_index.md with the following content:
---
title: API Reference
description: TEST
weight: 9
type: swagger
---
{{< swaggerui src="test.json" >}}
- Add also a OPENAPI/SWAGGER file besides names test.json
Thanks for your help
Environment
hugo version):hugo v0.125.6-69ede10edcd539380914bbee58d4d32953dd8b43+extended linux/amd64 BuildDate=2024-05-05T10:52:52Z VendorInfo=gohugoioProblem
The SwaggerUI shortcode doesn't work anymore.
On my browser's console (I also tested it on several browsers), I have this error:
Then, when I check the network console, I can see the following issues:
It seems the URL used (e.g., https://unpkg.com/swagger-ui-dist@5.1.0/swagger-ui.css) to get the JS artifacts are now blocked.
I tested it on a fresh setup of the docsy example.
The JS and CSS are indeed not unpackaged in the public folder.
Here is the way to reproduce this issue:
my-new-site/content/en/docs/test-swagger_index.mdwith the following content:Thanks for your help