Conversation
demiankatz
left a comment
There was a problem hiding this comment.
Thanks for this, @xmorave2, and sorry for the slow response -- it's taken me a while to find time to test this!
Unfortunately, I'm not exactly sure how to set up a scenario that breaks on the dev branch but works here. So far, everything I have tried looks the same in both places.
We probably need a Mink test to cover this scenario -- if you can help me understand how to reproduce the problem, I may be able to contribute a test to this PR.
Additionally, there seems to be a separate problem where backlinks do not display correctly in search results (though they do appear to work on the record page). Is this known/expected? Should we also fix that while working on other problems here?
|
@demiankatz the bug scenario for us is:
for us, the backlinks on detail does work too, but we do not use backlinks on search results so I am does not face this problem, I'll try to reproduce it and see what to do with it |
|
@xmorave2, in my setup, the cover was never clickable, with or without the fix. I just started up a test instance with default settings and used |
|
I should clarify: covers were never clickable when ajaxcovers was set to true. They worked when it was set to false. |
|
I think that the complexity came from making sure that if the cover is inside the record link and a I'll admit that cover.phtml could probably be updated to make this easier to update with JS and easier for all of this to be understood. @xmorave2, would you be interested in working on improving this or shall I take a shot? |
|
@xmorave2, I spent some more time digging into this today, and I still can't figure out a way for this code to make any difference to behavior. Cover behavior was significantly revised in #3546 in an effort to improve accessibility, and at this point, it seems that if you turn on ajax covers, |
|
I did put some work into making this code cleaner and more readable, but ultimately, @demiankatz is correct. In the cover HTML and where it is used, the possibility for the image being in a link has been removed. If any work needs to be done it is in the removal of the orphaned code. Something that can wait for v11.1. |
|
Thanks for confirming, @crhallberg -- I'm moving the milestone forward so we can figure this out in more detail after the 11.0 release. |
There is an issue with DOM manipulation: the current code does move image node with ajax loaded cover out of the link which makes the link not clickable.