Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 600 Bytes

custom-routing.md

File metadata and controls

24 lines (19 loc) · 600 Bytes

Custom Routing

Consider using query string instead before deciding to use custom routing, especially when SEO is not a concern.

To use custom route, create a configuration file in config/default.json like the following:

{
  "routes": {
    "/path/:any": {
      "page": "/path/to/page"
    },
    "/path/:number(\\d+)": {
      "page": "/path/to/another-page"
    }
  }
}

Please refer to the following documentation for: