Skip to content
This repository was archived by the owner on Jan 14, 2020. It is now read-only.

Conversation

@samnight
Copy link

Directory name includes query params while generating route, but it shouldn't.

lib/index.js Outdated
const { start, end } = await renderTemplate(context)
const targetPath = this.resolveOutDir(
`generated/${route.replace(/\/?$/, '/index.html')}`
`generated/${route.replace(/(\/?$|\/?\?.*$)/, '/index.html')}`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't it rather be something like /\/?(\?.*)?$/

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I will fix it.

@IlyaSemenov
Copy link
Contributor

@egoist I never worked with ream generator, please advise if the PR makes sense?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants