eeditiones / tei-publisher-components

Web components used by TEI Publisher and apps generated by it
https://cdn.tei-publisher.com/
GNU General Public License v3.0
18 stars 15 forks source link

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

Open casglur opened 1 year ago

casglur commented 1 year ago

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>