Here are a few screenshots to showcase the setup of the Fragment as Resource demo page:

LIST (enabling RaF, and applying the Content Link with inherited params from the JS modal instance)

CONTENT VIEW (art_id or else, with a Content Link and HTML Typo) to add/remove automatically the hash when the modal is opened