neo4j-contrib / graphgist

Easy publishing with graph data included
http://gist.neo4j.org/
208 stars 68 forks source link

Modified gists.js to account for the correct Dropbox base URL #19

Closed rpappu closed 10 years ago

rpappu commented 10 years ago

I couldn't get links to AsciiDoc files in Dropbox to work. For example, this GraphGist failed https://www.dropbox.com/s/edrw7kbhetwyzza/gistcheck.adoc failed with the error message

Error
Something went wrong fetching the GraphGist "https%3A%2F%2Fwww.dropbox.com%2Fs%2Fedrw7kbhetwyzza%2Fgistcheck.adoc":

This appears to be because the DROPBOX_BASE_URL in gists.js is https://dl.dropboxusercontent.com/u/ but the URLs I'm getting from Dropbox these days are prefixed with https://www.dropbox.com/s/

rpappu commented 10 years ago

It turns out that the link obtained through "Share Dropbox Link" simply brings us to a download page...and what GraphGist needs is the actual content of the file, so you need to replace www.dropbox.com from the share URL with dl.dropboxusercontent.com to make it work. Closing this pull request.

nawroth commented 10 years ago

@rpappu Thanks for the input, I finally made it work. Now the dropbox share URL you provided can be used in the file box: https://www.dropbox.com/s/n4d8cqbh933nkrd/privatetest.adoc And it will render.

rpappu commented 10 years ago

Awesome…thank you!

Ravi


ravipappu@gmail.com

On 27Jun, 2014, at 7:47 PM, Anders Nawroth notifications@github.com wrote:

@rpappu Thanks for the input, I finally made it work. Now the dropbox share URL you provided can be used in the file box: https://www.dropbox.com/s/n4d8cqbh933nkrd/privatetest.adoc And it will render.

— Reply to this email directly or view it on GitHub.