package.elm-lang.org
package.elm-lang.org copied to clipboard
Links to operators not working correctly
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>