From d8724ecc464a5ba8525ac14e66276da05ba45596 Mon Sep 17 00:00:00 2001 From: Utwo Date: Tue, 22 Nov 2022 15:50:29 +0200 Subject: [PATCH] Update location.js CodeSandbox BETA uses the `https://codesandbox.io/p/github/` URL format. Note the `/p/` instead of `/s/` Example URL: https://codesandbox.io/p/github/codesandbox/codesandbox-client --- src/location.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/location.js b/src/location.js index 67f2cc4..9539513 100644 --- a/src/location.js +++ b/src/location.js @@ -1,6 +1,6 @@ // extracted so it can be tested without requiring the worker runtime export function getCodeSandboxLocation(path) { - const prefix = 'https://codesandbox.io/s/github/' + const prefix = 'https://codesandbox.io/p/github/' const parts = path .substr(1) .split('/')