Skip to content
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

Unicode bookmark not working on metacpan's pod2html tool. #3206

Open
ajmetz opened this issue Oct 14, 2024 · 1 comment
Open

Unicode bookmark not working on metacpan's pod2html tool. #3206

ajmetz opened this issue Oct 14, 2024 · 1 comment
Labels

Comments

@ajmetz
Copy link

ajmetz commented Oct 14, 2024

Description:
Unicode in Links in the POD Renderer, are rendered correctly,
and do not function as bookmark links to sections on the same page.
For example, I have a languages section of POD with the following heading:

=head1 🌐 Language Links:

Then I try to link to it as:

See L<"Language Links"/🌐 Language Links:> for list of language tags.

The link renders in the browser in a way that presents correctly - the unicode is visible.
However, clicking the link leads to a https://metacpan.org/pod2html#%1F310-Language-Links%3A that does not work.

Steps to reproduce:

  1. Visit https://metacpan.org/pod2html

  2. Enter POD that includes a link with a unicode character in it. Remember to leave sufficiently long POD that there is scrolling from which to notice you are jumping to a link at a particular page position.

  3. Contrast by repeating step 2 albeit with a link without a unicode character in it. You'll see that works.

Expected behaviour:
I'd expect point 2 to work like point 3.
Are my expectations wrong? Are Unicode characters not allowed in web URLs or bookmarks?

Desktop:

  • OS: MacOS Sonoma 14.5
  • Browser: Firefox 130.0
@ajmetz
Copy link
Author

ajmetz commented Oct 14, 2024

Interestingly, the little black bookmark icon that appears on hover for copying anchor links, has a correct link that works.
Screenshot 2024-10-14 at 11 48 10
In this case.. https://metacpan.org/pod2html#🌐-Language-Links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant