Firebase Hosting Trailing Slash

October 18, 2020

Edit hosting.trailingSlash in firebase.json

  • true: Hosting redirects URLs to add a trailing slash.
  • false: Hosting redirects URLs to remove a trailing slash.
  • When unspecified, Hosting only uses trailing slashes for directory index files (for example, about/index.html).
  "hosting": {
    // ...

    // Removes trailing slashes from URLs
    "trailingSlash": false


This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.