Skip to content

Error handling routes containing .  #493

Closed
@cheapsteak

Description

@cheapsteak

Problem

Accessing route /releases/1.3.4 is treaded as a request for a file and the page fails to load with the error Cannot GET /releases/1.3.4

Partial project-specific fix:

modifying scripts/start.js:

historyApiFallback: {
  rewrites: [
    {
      from: /^\/releases\/.*$/,
      to: '/'
    }
  ]
},

Problem with partial fix

Probably undesirable to rewrite absolutely everything with a . to /, since we do sometimes want to request files

Since config files are undesirable, not sure how best to solve this

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions