Skip to content
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

Deleting blog config causes 404s #2782

Closed
kedarv opened this issue May 21, 2020 · 4 comments
Closed

Deleting blog config causes 404s #2782

kedarv opened this issue May 21, 2020 · 4 comments
Labels
bug An error in the Docusaurus core causing instability or issues with its execution status: needs triage This issue has not been triaged by maintainers

Comments

@kedarv
Copy link

kedarv commented May 21, 2020

🐛 Bug Report

Removing the following from a clean install of docusaurus v2 causes 404s:

        blog: {
          showReadingTime: true,
          // Please change this to your repo.
          editUrl:
            'https://github.com/facebook/docusaurus/edit/master/website/blog/',
        },

Have you read the Contributing Guidelines on issues?

(Write your answer here.)

To Reproduce

(Write your steps here:)

  1. run npx @docusaurus/init@next init my-website classic
  2. delete the entire blog item
  3. observe navigating to docs/doc1 results in a 404

Expected behavior

docs/doc1 should not 404 when in docs-only mode

Actual Behavior

I get a 404 when accessing docs/doc1

Your Environment

Node: v13.10.1
Chrome 81.0.4044.138

@kedarv kedarv added bug An error in the Docusaurus core causing instability or issues with its execution status: needs triage This issue has not been triaged by maintainers labels May 21, 2020
@kedarv
Copy link
Author

kedarv commented May 21, 2020

actually, I'm not sure what's causing 404s. but, it seems like routing is all sorts of messed up by default. I can't tell if I'm doing something wrong, but really all I've done is cloned the project and created a page to see this 404ing.

It seems like you can't access a doc page by its direct url if it's set as the homePageId

@lex111
Copy link
Contributor

lex111 commented May 21, 2020

This actually was fixed yesterday in #2777; strange, I assumed that @yangshun already published a bug fix release 🤷‍♂️.

@lex111
Copy link
Contributor

lex111 commented May 27, 2020

Fixed in v2.0.0-alpha.56.

@lex111 lex111 closed this as completed May 27, 2020
@kedarv
Copy link
Author

kedarv commented May 27, 2020

Thanks @lex111!

@kedarv kedarv changed the title Deleting Deleting blog config causes 404s Jul 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An error in the Docusaurus core causing instability or issues with its execution status: needs triage This issue has not been triaged by maintainers
Projects
None yet
Development

No branches or pull requests

2 participants