From: Andy Hebrank Date: Thu, 29 Dec 2016 15:48:43 +0000 (-0500) Subject: markdown fix and clarify history updates X-Git-Tag: v6.3.1-rc1~12^2~4^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec301fe696ccb319db9553ebf80d5209784caf2f;p=thirdparty%2Ffoundation%2Ffoundation-sites.git markdown fix and clarify history updates --- diff --git a/docs/pages/tabs.md b/docs/pages/tabs.md index 4500dbaf0..0dbd931a2 100644 --- a/docs/pages/tabs.md +++ b/docs/pages/tabs.md @@ -146,13 +146,16 @@ Add the attribute `data-active-collapse="true"` to a tabstrip to collapse active ### Browser history -The current state of the tabset is now recorded by adding a hash with the tab panel ID to the browser URL when a tab is opened. By default, tabs replace the browser history. Modify this behavior by using attribute `data-update-history="true"` to *append* to the browser history. In the latter case the browser back button will track each click that opens a tab panel. +When the `data-deep-link="true"` attribute is set, the current state of the tabset is recorded by adding a hash with the tab panel ID to the browser URL when a tab opens. By default, tabs *update and replace* the browser history (meaning that the browser does not navigate). Modify this behavior by using attribute `data-update-history="true"` to *append* to the browser history. In the latter case the browser back button will track each click that opens a tab panel. By using deep linking (see below), the open state of a page's tabset may be shared by copy-pasting the browser URL. ### Deep linking -Add the attribute `data-deep-link="true" to a tabstrip to allow anchoring to and opening a tab panel at page load. +Add the attribute `data-deep-link="true"` to a tabstrip to: + +- modify the browser history when a tab is clicked +- allow users to open a particular tab at page load with a hash-appended URL ```html_example