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.
1 parent 8d5cfa5 commit ef96c43Copy full SHA for ef96c43
src/controller/index.ts
@@ -95,8 +95,9 @@ export class ScramjetController {
95
96
decodeUrl(url: string | URL) {
97
if (url instanceof URL) url = url.toString();
98
+ const prefixed = location.origin + $scramjet.config.prefix;
99
- return $scramjet.codec.decode(url);
100
+ return $scramjet.codec.decode(url.slice(prefixed.length));
101
}
102
103
async openIDB(): Promise<IDBDatabase> {
0 commit comments