[Developers] Viewer source code?

Jason Douglas jason at metaweb.com
Fri May 29 00:47:53 UTC 2009


On May 28, 2009, at 5:14 PM, Joseph Turian wrote:

> Jason,
>
> Thanks for the help.
>
> Another question: Where do the link URLs get written in?
> I have a clone of your code (which now I guess I will have to manually
> merge your changes)
> and I would like to rewrite the link URLs as absolute, not relative,
> pointing to freebase.com

http://acre.freebase.com/#app=/user/jdouglas/view&file=topic&line=349

Change:
<a title="$title" href="${'/'+acre.environ.script_name+valueEntry.id +
             '?' + acre.formencode(settings)}">

to:

<a title="$title" href="${'http://www.freebase.com/' +  
acre.environ.script_name + valueEntry.id}">

(you probably don't need/want the settings stuff anyway...).

-jason


More information about the Developers mailing list