We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
filePath
1 parent af6c219 commit afc318bCopy full SHA for afc318b
src/contexts/UrlContextProvider.tsx
@@ -187,9 +187,9 @@ const getWindowUrlSearchParams = () => {
187
// This ensures any parameters following `filePath=` are incorporated into the `filePath`.
188
const [, filePath] = window.location.search.split("filePath=");
189
if ("undefined" !== typeof filePath && 0 !== filePath.length) {
190
- let resolvedFilePath = filePath;
+ let resolvedFilePath = decodeURIComponent(filePath);
191
try {
192
- resolvedFilePath = getAbsoluteUrl(filePath);
+ resolvedFilePath = getAbsoluteUrl(resolvedFilePath);
193
} catch (e) {
194
console.error("Unable to get absolute URL from filePath:", e);
195
}
0 commit comments