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.
har:view
1 parent a5efb9e commit bc18d43Copy full SHA for bc18d43
browser-extension/tests/har-view.ts
@@ -62,6 +62,18 @@ async function loadHar(filename: string) {
62
return harData
63
}
64
65
+// Add redirect routes for each PAGES URL to handle refreshes
66
+Object.entries(PAGES).forEach(([key, url]) => {
67
+ try {
68
+ const urlObj = new URL(url)
69
+ app.get(urlObj.pathname, (_req, res) => {
70
+ res.redirect(`/page/${key}.har/gitcasso`)
71
+ })
72
+ } catch (error) {
73
+ console.warn(`Could not create redirect route for ${key}: ${url}`)
74
+ }
75
+})
76
+
77
// List available HAR files
78
app.get('/', async (_req, res) => {
79
try {
0 commit comments