Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The responsive preview appears blank after a fresh Spark installation. Nothing loads in it, and no javascript errors. Just get a blank gray frame that looks to be the size of the selected device. There also doesn't seem to be a way to close it after choosing a device from the menu, other than by reloading the page.
Comments
Comment #1
webchickThis appears to be fixed for me in the latest dev release.
Comment #3
b3wii CreditAttribution: b3wii commentedHi, i have the same problem as dfletcher the preview doesnt load the correct page...
screenshot
Edit: To fix the problem just comment the part "+ window.location.pathname" in line 674 of \profiles\spark\modules\contrib\responsive_preview\js\responsive-preview.js
$frame.get(0).contentWindow.location = Drupal.settings.basePath.slice(0, -1)/* + window.location.pathname*/;
Fix