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

Empty home page after following link from 404 page #2891

Closed
4 tasks done
kdrag0n opened this issue Aug 31, 2023 · 0 comments · Fixed by #2972
Closed
4 tasks done

Empty home page after following link from 404 page #2891

kdrag0n opened this issue Aug 31, 2023 · 0 comments · Fixed by #2972

Comments

@kdrag0n
Copy link
Contributor

kdrag0n commented Aug 31, 2023

Describe the bug

Clicking "Take me home" on the 404 page takes me to the home page (/), but the page is empty until I refresh. There are no errors in the console or network requests.

Reproduction

I wasn't able to reproduce this on vitepress.new or in development mode, but it does reproduce with pnpm docs:build && pnpm docs:serve and the following configs:

docs/.vitepress/config.js:

export default {
  title: 'OrbStack Docs',
  titleTemplate: ':title · OrbStack Docs',
  description: 'Say goodbye to slow, clunky containers and VMs.',
  themeConfig: {
    logo: '/img/logo64.png',
    socialLinks: [
      { icon: 'twitter', link: 'https://twitter.com/orbstack' },
      { icon: 'github', link: 'https://github.com/orbstack' },
      { icon: 'discord', link: 'https://discord.gg/Tfjyd5N5Eq' },
    ],
    footer: {
      copyright: '© 2023 Orbital Labs, LLC',
    },
    nav: [
      { text: 'Overview', link: '/' },
      { text: 'Docker', link: '/docker/' },
      { text: 'Linux', link: '/machines/' },
      { text: 'Install', link: '/quick-start' },
      { text: 'Demo', link: 'https://orbstack.dev/' },
    ],
    sidebar: [
      {
        text: 'Get started',
        collapsed: false,
        items: [
          { text: 'Home', link: '/' },
          { text: 'Features', link: '/features' },
          { text: 'Quick start', link: '/quick-start'},
          { text: 'Frequently asked questions', link: '/faq' },
          { text: "What's new", link: '/release-notes' },
        ],
      },
      {
        text: 'Learn more',
        collapsed: false,
        items: [
          { text: 'Install', link: '/install'},
          { text: 'Efficiency', link: '/efficiency' },
          { text: 'Benchmarks', link: '/benchmarks' },
          { text: 'Architecture', link: '/architecture' },
          { text: 'Settings', link: '/settings' },
          { text: 'Headless & CI', link: '/headless' },
          { text: 'Older versions', link: '/downgrade' },
        ],
      },
      {
        text: 'Docker containers',
        collapsed: false,
        items: [
          { text: 'Using Docker containers', link: '/docker/' },
          { text: 'Network', link: '/docker/network' },
          { text: 'Volumes & mounts', link: '/docker/file-sharing' },
          { text: 'Domain names', link: '/docker/domains' },
        ],
      },
      {
        text: 'Kubernetes',
        collapsed: false,
        items: [
          { text: 'Using Kubernetes', link: '/kubernetes/' },
        ]
      },
      {
        text: 'Linux machines',
        collapsed: false,
        items: [
          { text: 'Using Linux machines', link: '/machines/'},
          { text: 'Commands', link: '/machines/commands' },
          { text: 'Network', link: '/machines/network' },
          { text: 'File sharing', link: '/machines/file-sharing' },
          { text: 'SSH', link: '/machines/ssh' },
          { text: 'Distributions', link: '/machines/distros' },
        ],
      },
      {
        text: 'Compare',
        collapsed: false,
        items: [
          { 'text': 'Docker Desktop', link: '/compare/docker-desktop' },
          { 'text': 'Colima', link: '/compare/colima' },
          { 'text': 'UTM', link: '/compare/utm' },
        ],
      }
    ],
    algolia: {
      appId: 'xxx',
      apiKey: 'xxx',
      indexName: 'orbstack'
    },
  },
  cleanUrls: true,
  head: [
    ['script', { async: '', defer: '', src: 'https://orbstack.dev/js/xxx.js' }],
    ['link', { rel: 'icon', sizes: '64x64', href: '/img/logo64.png' }],
    ['link', { rel: 'shortcut icon', href: '/img/logo128.png' }],
    ['link', { rel: 'apple-touch-icon', href: '/img/logo128.png' }],
  ]
}

index.md:

# What is OrbStack?

[OrbStack](https://orbstack.dev) is a fast, light, and simple way to run containers and Linux machines on macOS. It's a supercharged alternative to Docker Desktop and WSL, all in one easy-to-use app.

Keep reading to learn more, or [get started](quick-start.md) right away.
# What is OrbStack?

[OrbStack](https://orbstack.dev) is a fast, light, and simple way to run containers and Linux machines on macOS. It's a supercharged alternative to Docker Desktop and WSL, all in one easy-to-use app.

Keep reading to learn more, or [get started](quick-start.md) right away.# What is OrbStack?

[OrbStack](https://orbstack.dev) is a fast, light, and simple way to run containers and Linux machines on macOS. It's a supercharged alternative to Docker Desktop and WSL, all in one easy-to-use app.

Keep reading to learn more, or [get started](quick-start.md) right away.# What is OrbStack?

[OrbStack](https://orbstack.dev) is a fast, light, and simple way to run containers and Linux machines on macOS. It's a supercharged alternative to Docker Desktop and WSL, all in one easy-to-use app.

Keep reading to learn more, or [get started](quick-start.md) right away.# What is OrbStack?

[OrbStack](https://orbstack.dev) is a fast, light, and simple way to run containers and Linux machines on macOS. It's a supercharged alternative to Docker Desktop and WSL, all in one easy-to-use app.

Keep reading to learn more, or [get started](quick-start.md) right away.# What is OrbStack?

[OrbStack](https://orbstack.dev) is a fast, light, and simple way to run containers and Linux machines on macOS. It's a supercharged alternative to Docker Desktop and WSL, all in one easy-to-use app.

Keep reading to learn more, or [get started](quick-start.md) right away.

The issue doesn't occur with a short index.md, so I had to copy and paste the text to reproduce it.

Expected behavior

Home page appears.

System Info

System:
    OS: macOS 13.5.1
    CPU: (10) arm64 Apple M1 Max
    Memory: 1.25 GB / 64.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.5.1 - /opt/homebrew/bin/node
    Yarn: 1.22.19 - /opt/homebrew/bin/yarn
    npm: 9.8.0 - /opt/homebrew/bin/npm
    pnpm: 8.6.6 - /opt/homebrew/bin/pnpm
  Browsers:
    Chrome: 116.0.5845.140
    Safari: 16.6
  npmPackages:
    vitepress: 1.0.0-rc.10 => 1.0.0-rc.10

Additional context

Screenshot

Validations

@kdrag0n kdrag0n added the bug: pending triage Maybe a bug, waiting for confirmation label Aug 31, 2023
@brc-dd brc-dd added bug and removed bug: pending triage Maybe a bug, waiting for confirmation labels Aug 31, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 23, 2023
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 a pull request may close this issue.

2 participants