Join MDN and developers like you at Mozilla's View Source conference, 12-14 September in Berlin, Germany. Learn more at https://viewsourceconf.org

browser.urlbar.trimURLs

The preference browser.urlbar.trimURLs controls whether the protocol http and the trailing slash behind domain name (if the open page is exactly the domain name) are hidden.

  • Type:boolean
  • Default value:  true
  • Exists by default: yes
  • Application support:Firefox 7.0
  • Status: Active; last updated 2012-04-03
  • Introduction: Pushed to Nightly on 2011-06-23
  • Bugs: bug 665580 

Values

true (default)
If the active url is exactly the domain name, the trailing slash (/) behind the top level domain will be hidden. If the address starts with http:// and neither starts with a ftp. subdomain nor contains @ (usually for ftp login information), the http:// prefix will be hidden.

Examples: https://www.example.org/ becomes https://www.example.org, http://www.example.org/foobar becomes www.example.org/foobar and http://ftp.example.org/foobar remains unchanged.
false
All parts of the url are shown.

Document Tags and Contributors

Tags: 
 Contributors to this page: MatthewKastor, ziyunfei, Aryx
 Last updated by: MatthewKastor,