Download & Extend

Incorrect default autocomplete path

Project:API
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:minor
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

The use of base_path() and url() in the default value of apiAutoCompletePath causes the autocomplete to fail until a JSON file is generated. This problem isn't that serious as it only affects the availability of autocomplete before those JSON files are created (when api_shutdown is called and files need to be removed from the index).

I have tested the patch in both bare root (http://example.com/) and subdomain to make sure it works (http://example.com/api/). Autocomplete now works before those files are generated.

AttachmentSize
api.autocomplete.url_.patch798 bytes

Comments

#1

Sorry, I meant subdirectory.

#2

Status:needs review» closed (fixed)

This is wrong actually and caused a bug on drupalcontrib.org. Doh.

nobody click here