Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Percent encode whitespace in mailto hrefs#13197

Open
jimchamp wants to merge 1 commit into
masterinternetarchive/openlibrary:masterfrom
percent-encode-mailto-linksinternetarchive/openlibrary:percent-encode-mailto-linksCopy head branch name to clipboard
Open

Percent encode whitespace in mailto hrefs#13197
jimchamp wants to merge 1 commit into
masterinternetarchive/openlibrary:masterfrom
percent-encode-mailto-linksinternetarchive/openlibrary:percent-encode-mailto-linksCopy head branch name to clipboard

Conversation

@jimchamp

Copy link
Copy Markdown
Collaborator

The space character in our mailto links is causing validation errors. Spaces are illegal characters for href values.

Please close if not needed

Technical

Testing

Screenshot

Stakeholders

Copilot AI review requested due to automatic review settings July 22, 2026 21:40
@github-actions
github-actions Bot requested a review from openlibrary-bot July 22, 2026 21:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes HTML validation issues by percent-encoding the space in mailto: href query strings (specifically the subject parameter), ensuring the generated links use a valid URI.

Changes:

  • Updated the footer “Contact Us” mailto: link to use subject=Support%20Case.
  • Updated the account settings support mailto: link to use subject=Support%20Case.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
openlibrary/templates/lib/nav_foot.html Percent-encodes the space in the mailto: subject used by the footer “Contact Us” link.
openlibrary/templates/account.html Percent-encodes the space in the mailto: subject used by the account settings support link.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.