tei-publisher-components icon indicating copy to clipboard operation
tei-publisher-components copied to clipboard

URL being re-written in the browser using the <pb-link> component

Open casglur opened this issue 1 year ago • 0 comments

I am using TEI-Publisher components embedded within another website. When a gets clicked it then re-writes the URL - almost like it cancels the disable-history=true setting on the <pb-view>. I can see <pb-link> has a 'history' attribute but this doesn't seem to function the same way as the 'disable-history' attribute on <pb-view>. I've also tried setting disabled=true on the component and this does not stop it rewriting the URL when clicked. Is there a way to pass disable-history=true in the path, or any other attribute that you supply to <pb-link>, please, i.e.

<pb-link path="myrddin_005.xml?disable-history=true" xml-id="myrddin_005_testun_gwr">Ancient version</pb-link>

casglur avatar May 23 '23 12:05 casglur