-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slug with explicit .html extension breaks build #8139
Comments
Could you try setting |
That doesn't seem to have any effect. I get the exact same error.
My work-around leaves me with this url: |
Ok, if I put the slugs as I do think that it's a bit unclear from just looking at the slug to understand what the end result will be, but this now seems more like a feature than a bug :) |
Setting |
Never mind, this was actually a broken link that I didn't see earlier because of the build issues.
(I stopped using the toy example |
@rwwilden please when. you have a stacktrace, post it in its entirety. You removed the stacktrace from the error message, preventing us to immediately understand what's the issue, needing to reproduce it locally to understand the problem. The stacktrace is:
This makes it clear for us maintainers that the problem is in our blog feed: we added a When an URL already ends with
External refs can be handled with redirects. Many hosts will auto redirect, or serve You may want to keep using Using |
Good first issueThis is an easy issue that can be easily solved by an external contributor. Here are some instructions for anyone willing to fix the bug:
DisclaimerWe, project maintainers, have limited time and need to protect it. We kindly ask you to invest your time, trying to be autonomous and proactive instead of expecting us to guide you step-by-step.
|
Hey @slorber I'll like to work on this. I've read the disclaimer and don't expect the PR to be assigned but just wanted to give up a heads up to prevent some one else from working on the same task. ( I'll try create a PR quickly, but if you don't see a message in the next 12 hours, feel free to pick this up ) |
I've been able to setup the project and am able to reproduce this issue. Will send a PR soon. |
I've created a PR which fixes this. Feel free to take a look when you get time |
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
I'm migrating a blog from Jekyll. It is necessary for me to keep the exact same url structure because there's external refs to these posts. So I have a
in every blog post frontmatter. On build, this fails with the following error:
Running the site works fine, error only happens on build.
Reproducible demo
https://stackblitz.com/edit/github-iuz7vq?file=blog/2021-08-26-welcome/index.md
Steps to reproduce
/a/b.html
yarn build
Expected behavior
Build should succeed, especially since running the site poses no problems.
Actual behavior
Build fails with the following error message:
Your environment
On stackblitz playground.
Self-service
The text was updated successfully, but these errors were encountered: