New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent index escaping #2535
Comments
|
Please, @cfa , can you check this out? |
|
Sure, I'll take a look. |
|
First pass: it looks like The anchor for the Will keep digging. |
|
Re: escaping, I think there are two related issues:
Amusingly, It looks like %23%3D works in Firefox but not Chrome or Safari—so both these points need to be addressed for browser compatibility. |
|
Yep, I've been there and arrived to the point where it's easier to ditch it all and start all over again than keep patching it, because URLs are being generated, and then sent back and forth between pod and HTML, acquiring stuff on the process. Simply, the anchor generating part has to be rewritten, period. Actually, #1823 says the whole thing has to be rewritten. |
|
Seems like this is not relevant to this repository anymore. Honestly, I can't even find these index-prefixed anchors, although I remember them. In any case - if there are problems, they should be consolidated under https://github.com/Raku/doc-website/. |
|
Here are a few matches for @2colours++ regarding escaping being the responsibility of the doc-website repo. Use of incorrect/broken index anchors in |
Problem
The current escaping rules seem to be inconsistent between anchor names and corresponding index entries.
See [df15cce] for the latest example of this:
index-entry-declarator_blocks_%23|#index-entry-declarator_blocks_%2523%7Cindex-entry-declarator_blocks_%23=#index-entry-declarator_blocks_%2523%3DChrome and Safari can resolve these links while Firefox apparently cannot (i.e., clicking
#|in the search dropdown will take the user to the top of /language/pod rather than to the anchored declarator block section).Suggestion
Ensure that the escaping used for anchors is also used in the index (i.e., address the inconsistency). In the above, page anchors should use
<%7C %3D>rather than unescaped<| =>.The text was updated successfully, but these errors were encountered: