We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents dd126d7 + c497819 commit 1fe8549Copy full SHA for 1fe8549
blocks/fragment/fragment.js
@@ -18,7 +18,7 @@ import {
18
* @returns {Promise<HTMLElement>} The root element of the fragment
19
*/
20
export async function loadFragment(path) {
21
- if (path && path.startsWith('/')) {
+ if (path && path.startsWith('/') && !path.startsWith('//')) {
22
const resp = await fetch(`${path}.plain.html`);
23
if (resp.ok) {
24
const main = document.createElement('main');
0 commit comments