You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trailingSlash is enabled, pathname is '/' and it's working
When trailingSlash is disabled pathname is '' and the condition evaluates to false, thus never adding the page to SSG queue.
Which component is affected?
Qwik City (routing)
Describe the bug
Given the following routes directory
SSG is generating
articles.html
successfully but the top levelindex.html
is missing whentrailingSlash
option is set tofalse
.I suspect the line below :
qwik/packages/qwik-city/static/main-thread.ts
Line 143 in 25c0c98
When
trailingSlash
is enabled,pathname
is'/'
and it's workingWhen
trailingSlash
is disabledpathname
is''
and the condition evaluates tofalse
, thus never adding the page to SSG queue.Reproduction
https://stackblitz.com/edit/qwik-starter-zmev6t
Steps to reproduce
npm install
thennpm run build
dist
folder not having index.htmltrailingSlash
totrue
invite.config.js
npm run build
againindex.html
is now present in thedist
folderSystem Info
Additional Information
No response
The text was updated successfully, but these errors were encountered: