craftcms / cms

Build bespoke content experiences with Craft.
https://craftcms.com
Other
3.21k stars 624 forks source link

Live Preview does not function if Site has differing domain in own url #1496

Closed narration-sd closed 7 years ago

narration-sd commented 7 years ago

Description

I'm looking at three sited Entries: the default, a Belgian Walloon, and a Belgian Flemish. Live Preview works for the first two, which have craft3.dev/ and craft3.dev/c3bw own urls in siteUrl array in general.php. It does not work for the third, which has hetcraft3.be/c3bf for its siteUrl definition.

If I change the third to have craft3.dev/c3bf, then Live Preview works for that site also, fine.

n.b. hetcraft3.be is set up in local hosts file, and works fine to display the actual site, on het3craft3.be, and with text properly translated on hetcraft3.be/c3bf.

Steps to reproduce

  1. As above

Additional info

PHP version 7.1.2-3+deb.sury.org~xenial+1 Database driver & version MySQL 5.7.17-0ubuntu0.16.04.1 Image driver & version GD 7.1.2-3+deb.sury.org~xenial+1 Craft edition & version Craft Personal 3.0.0-beta.7 Yii version 2.0.11.2 Twig version 2.1.0 Guzzle version 6.2.1 Imagine version 0.7-dev Plugins: none

brandonkelly commented 7 years ago

This will be fixed when #1521 is implemented.