Here's what I found and I'm stuck as to how to fix it.
First off:
Same issue happens when I put a unique variable.
No errors in the developer console. I don't know what you mean by "inspected where the URL should be".
What I found:
The problem seems to be this javascript that's handling the pop up...or involve the javascript.
1/ When I remove the javascript code the image pops up the full size as it should, but is displayed as a whole new page with a black background instead of in a pop up.
2/ When the javascript code stays I have to put the print/echo for the image to popup and display the proper size within a pop up window.
3/ When I leave the javascript and don't use the print/echo the popup happens in a popup window (which it should) but when I hover over the image, instead of seeing a magnify glass to zoom and make the image larger (to the proper size as I believe is how this should work), it's a pointer and clicking doesn't do anything.
This is the javascript code to activate everything in the twig
Code: Select all
$(document).ready(function() {
$('.thumbnails').magnificPopup({
type:'image',
delegate: 'a',
gallery: {
enabled: true
}
});
});
This attached zip is the included script that goes in the controller which I can't make heads or tails of to fix this issue. It looks like I'm going to have to fiddle with this for a while to figure out how to make it work together properly (it is condensed, to look at it needs a "beautify" program to make it readable
https://beautifier.io/).
All though, with all that, I still don't understand what the print/echo have to do with anything.