Skip to content

Commit

Permalink
dde6644 fix: SSG ignoring the index page when trailingSlash is false …
Browse files Browse the repository at this point in the history
  • Loading branch information
JerryWu1234 committed May 13, 2024
1 parent 061e7c6 commit cca8831
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@builder.io/qwik-city",
"description": "The meta-framework for Qwik.",
"version": "1.5.4-dev20240510225532",
"version": "1.5.4-dev20240513151531",
"bugs": "https://github.com/QwikDev/qwik/issues",
"dependencies": {
"@mdx-js/mdx": "^3.0.1",
Expand Down
3 changes: 3 additions & 0 deletions vite/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -14591,6 +14591,9 @@ function getPathnameFromDirPath(opts, dirPath) {
const relFilePath = (0, import_node_path.relative)(opts.routesDir, dirPath);
let pathname = normalizePath(relFilePath);
pathname = normalizePathname(pathname, opts.basePathname, opts.trailingSlash).split("/").filter((segment) => !isGroupedLayoutName(segment)).join("/");
if (pathname === "") {
return "/";
}
return pathname;
}
function getMenuPathname(opts, filePath) {
Expand Down
3 changes: 3 additions & 0 deletions vite/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14581,6 +14581,9 @@ function getPathnameFromDirPath(opts, dirPath) {
const relFilePath = relative(opts.routesDir, dirPath);
let pathname = normalizePath(relFilePath);
pathname = normalizePathname(pathname, opts.basePathname, opts.trailingSlash).split("/").filter((segment) => !isGroupedLayoutName(segment)).join("/");
if (pathname === "") {
return "/";
}
return pathname;
}
function getMenuPathname(opts, filePath) {
Expand Down

0 comments on commit cca8831

Please sign in to comment.