You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

PeterC66's avatar
PeterC66
Explorer | Level 3
4 years ago

How can I open an HTML document in Dropbox and go directly to an anchor tag

My requirement is fairly complex, but to understand the issue better I have a simple test HTML file with

<a href="#xx">go to  xx</a>

at the top of the body, and an anchor

<a id="xx">

at the end of several pages of text. 

As expected, on DropBox clicking on "go to  xx" takes the browser down to the bottom of the text. 

 

On a normal server I would expect https://...#xx to open the page directly at the bottom of the text, but this does not seem to happen on DropBox.

 

This is important for me as my document is very long and I want to provide a quick way for users to open it at various points.

  • Dropbox ignores commands based upon HTML tags (in fact I'm quite shocked its rendering the page at all, I thought that had been disabled). There isnt a way round this that I know of 

  • Mark's avatar
    Mark
    Icon for Super User II rankSuper User II

    Dropbox ignores commands based upon HTML tags (in fact I'm quite shocked its rendering the page at all, I thought that had been disabled). There isnt a way round this that I know of 

    • PeterC66's avatar
      PeterC66
      Explorer | Level 3

      Thanks. Thinking about it I now realise that I should not expect DropBox to show HTML as I have a website for that! My document is actually in Word that I converted to PDF.  But as I could not reliably link to bookmarks in a PDF I switched to generating HTML. I should have thought a bit more about it before assuming to put it on DropBox.