Skip to content

Commit

Permalink
Fix search params only parsable with trailing slash
Browse files Browse the repository at this point in the history
Fix search params only parsable with trailing slash
  • Loading branch information
pkong-ds authored May 31, 2024
2 parents db2d815 + 0280d96 commit e1a262e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ import image from "@astrojs/image";

export default defineConfig({
integrations: [image()],
trailingSlash: "ignore",
});
1 change: 1 addition & 0 deletions src/env.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/// <reference path="../.astro/types.d.ts" />
/// <reference types="astro/client" />
3 changes: 2 additions & 1 deletion src/scripts/algolia/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export const getBrandItems = (deviceManager: DeviceManager) =>
return {
id: v.id,
name: v.name,
pathname: `/type/all?brand=${v.id}`,
// Added trailing slash because astro can only read this
pathname: `/type/all/?brand=${v.id}`,
};
});

0 comments on commit e1a262e

Please sign in to comment.