-
-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
toggle-feature and select-feature cause errors reloading the page #147
Comments
I was able to reproduce the incorrect URL by clicking the "Normalised View" checkbox in the top toolbar. |
I found the code that is responsible for adding the selectors to the URL. It is
|
By simply removing the selectors from the properties before calling // shield URL from selectors
delete properties.selectors |
Side note: Initial toggle states are not picked up properly in the client-side demo. |
The selectors property is sometimes stored in state and sometimes only in channelState from what I gather. |
related #149 |
Selecting configuration with pb-toggle-feature or pb-select-feature adjusts the URL to include
selectors=....
section which prevents the page from being reloaded correctlyCompare
https://teipublisher.com/exist/apps/tei-publisher/test/lelewel1.xml?view=page&norm=off&odd=lelewel
vs
https://teipublisher.com/exist/apps/tei-publisher/test/lelewel1.xml?view=page&norm=on&odd=lelewel&selectors=%5Bobject+Object%5D
The text was updated successfully, but these errors were encountered: