Skip to content

Quick Jump feature broken on some of our hackage documentation #2981

@leonschoorl

Description

@leonschoorl

Something is wrong with the haddock files on hackage for clash-prelude-1.8.2.

When viewing the hackage page for clash-prelude-1.8.2 and trying to use the Quick Jump feature, by pressing the s key, you get taken to the bottom of the page, and the search box looks different from normal.
Searching does work, but all links are broken, for example sample links to: https://hackage.haskell.org/package/clash-prelude-1.8.2/#v:sample

One version early clash-prelude-1.8.1 does function normally.

Looking at the browser console, I can see a 403 error when attempting to load https://hackage.haskell.org/package/clash-prelude-1.8.2/docs/quick-jump.css
And a message(view its source):

Quick Jump hash is not correct: Accepted Quick Jump hashes are listed in the hackage-server source code.

Both versions are listed as "Docs uploaded by user".
So apparently after clash-prelude-1.8.1 we started uploading "illegal" quick-jump.css files to hackage.

Interestingly clash-lib-1.8.2 is correct, but both clash-lib-1.8.2/candidate and clash-lib-1.9.0/candidate are also broken.

By manually patching the css file via the developer tools, I've verified that is broke css file is the cause of the observed behaviour.
But I was very surprised to see a css file affect a link target like this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions