package.elm-lang.org icon indicating copy to clipboard operation
package.elm-lang.org copied to clipboard

Links to operators not working correctly

Open andys8 opened this issue 7 years ago • 0 comments
trafficstars

Issue

If the user clicks on an operator like (|>) the page won't jump to the section containing the operator. This link is opening the page at top, but shouldn't.

Cause

The link created is https://package.elm-lang.org/packages/elm/core/latest/Basics#(|>). The html id is missing the parentheses.

<div class="docs-block" id="|>">
...
</div>

Solution

Add parentheses to id.

<div class="docs-block" id="(|>)">
...
</div>

andys8 avatar Oct 20 '18 12:10 andys8