question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug Report

Describe the bug

Routes are active only for the current session. If someone shares the link to one of the pages in the documentation (or even reload the page), they will come across a 404 page.

To Reproduce

  1. Go to your documentation.
  2. Click on a new section.
  3. You’ll get a root like domain.com/section
  4. Access this url on a new tab

Expected behavior

Access the shared page

2018-06-15_11 56 11

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
tpuccicommented, Jun 4, 2019

@adrianoresende Deploying with Netlify, add this file at the root of your project. It should fix your issue:

# COMMENT: This a rule for Single Page Applications
[[redirects]]
  from = "/*"
  to = "/"
  status = 200

References:

1reaction
adrianoresendecommented, May 26, 2019

I have the same error, but I deployed on Netlify. This error happens with Surge.sh too

My configuration:

export default {
  title: 'Docz',
  description: 'This is my awesome documentation',
  menu: [
    'Bem vindo',
    'Princípios de design',
    {
      name: 'Estilos',
      menu: [
        'Cores',
        'Tipografias',
      ],
    },
    {
      name: 'Componentes',
      menu: [
        'Botão',
      ],
    },
    'Marketing',
    'Produto',
    'Recursos',
    'FAQ',
  ],
  src: './src',
  public: './src/public',
  plugins: [],
  theme: 'docz-theme-default',
  themeConfig: {
    logo: {
      src: '/public/imgs/logo.svg',
      width: '100%',
    },
    colors: {
      primary: '#4967a9',
    },
  },
  htmlContext: {
    favicon: '/public/favicon.png',
  },
}

What’s the solution?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Vehicle routing problem - Wikipedia
The vehicle routing problem (VRP) is a combinatorial optimization and integer programming problem which asks "What is the optimal set of routes for...
Read more >
Vehicle Routing Problem | OR-Tools - Google Developers
In the Vehicle Routing Problem (VRP), the goal is to find optimal routes for multiple vehicles visiting a set of locations. (When there's...
Read more >
Common Routing Problems—And How to Solve Them
Learn how to solve common routing problems for your delivery business so that you can stay ahead of the competition.
Read more >
How to Solve Your Vehicle Routing Problem (Without a ...
Understanding the vehicle routing problem (VRP) is pretty simple, but solving it is a whole other matter. The vehicle routing problem (sometimes ...
Read more >
Vehicle Routing Problem - an overview | ScienceDirect Topics
The vehicle routing problem (VRP) is a combinatorial optimization that involves finding an optimal design of routes traveled by a fleet of vehicles...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found