-
-
Notifications
You must be signed in to change notification settings - Fork 317
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
Element IDs change from preview to published content #2354
Comments
That's true and due to the nature that we copy elements from the draft to the published page version. The only way I think we can solve this is by not using the database id for the DOM ID. |
After considering, I think the best way forward is to not implicitly add DOM ids in Alchemy helpers. Whoever needs DOM ids for their elements should implement their own logic. Polluting the DOM with ids for every element we render has never been a good idea. That's why in #2368 we are deprecating this behavior. |
We cannot use the id, because that will change if publish the page. The position will be the same across versions and combined with the name it is unique on each page. Fixes AlchemyCMS#2354
We cannot use the id, because that will change if publish the page. The position will be the same across versions and combined with the name it is unique on each page. Fixes AlchemyCMS#2354
We cannot use the id, because that will change if publish the page. The position will be the same across versions and combined with the name it is unique on each page. Fixes #2354
We cannot use the id, because that will change if publish the page. The position will be the same across versions and combined with the name it is unique on each page. Fixes AlchemyCMS#2354
Steps to reproduce
Expected behavior
anchor linked id is same than target id in published page dom.
Actual behavior
anchor link id differs from target id in published page dom.
System configuration
-7.0.3
The text was updated successfully, but these errors were encountered: