I have set up my Entity Reference View Widget according to the specifications. Everything works as expected up until the point when I click the buttons "Add Item" or "Add Items and Close Window."
The site was set up at www.example.com/site. I have made the necessary adjustments to my htaccess and settings.php files to reflect the fact that the site is installed in a subdirectory. Now this is going to sound strange but, when I click "Add Item" it essentially pushes the content from www.example.com to the "Selected Items" list. The content is from entirely different site on the same server, and in no way linked to my new Drupal site. I have never encountered anything like this before with another Drupal module. When I ultimately save the node, nothing shows up in the Entity Reference field.
When I created a subdomain for the directory, the module worked perfectly. Any ideas what could be causing this?
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | entityreference_view_widget_js_base_url-2181015-1.patch | 483 bytes | nhck |
Comments
Comment #1
nhck commentedHej,
the same thing happend to me - I remove the slash in line 38 of the javascript file.
It might be better to use Drupal.settings.basePath ?
Comment #2
joncjordan commentedSure enough, that fixed it. Thanks!
Comment #3
joncjordan commentedComment #4
nhck commentedI don't think this is in the repository yet, so should we really close it?
Comment #5
jsacksick commentedI committed a patch that makes use of the Drupal.settings.basePath, See ad086f6