Skip to content

HTML5 mode in v3 #748

Closed
Closed
@hexadecy

Description

@hexadecy

Description

I want to move from v2 to v3, but I don't know how to enable HTML5 mode like in Static middleware.

Checklist

  • Dependencies installed
  • No typos
  • Searched existing issues and docs

Expected behaviour

Bring back Static middleware please

Actual behaviour

No HTML5 mode with AngularJS. Not Found when reload.

Steps to reproduce

e.Static("/", "public")

Working code to debug

e.Use(middleware.StaticWithConfig(middleware.StaticConfig{
	Root:   "public",
	Index:  "index.html",
	HTML5:  true,
	Browse: false,
}))

Version/commit

cd2530e

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions