a string of Wagtail directives, if any, in the style of URL search parameters.
This follows the algorithm described above, o extract the fragment directive from the URL fragment, with a few differences:
window.location.hash = '#:w:contentpath=abc1.d2e.3f'
// getWagtailDirectives() === 'contentpath=abc1.d2e.3f'
Extract the Wagtail directives from the URL fragment.