Skip to content

Conversation

AnneCYH
Copy link
Contributor

@AnneCYH AnneCYH commented Aug 27, 2025

  • Use root relative link instead of directory-relative URL which caused tags to be appended to the on-page tags for plaintext nodes.
  • Use directory-style URLs instead of appending .html to match the implementation for badges.

Current issue where links are not rendered correctly for plaintext nodes:
sphinx-tags-appended-tags

Link to the parent tags page should be "/_tags/how-to/" but it is currently generated wrongly as "/how-to/_tags/how-to/" due to the relative path.

Hope this is enough info; lemme know if anything else is needed, thank you!

@MggMuggins
Copy link

@106106 Am I understanding correctly that this fixes #117?

@106106
Copy link

106106 commented Aug 27, 2025

@106106 Am I understanding correctly that this fixes #117?

Yes, this would resolve the issue.

As a temporary workaround using the badges implementation works (i.e. tags_create_badges = True)

@JWCook
Copy link
Collaborator

JWCook commented Sep 5, 2025

Hey @melissawm, this is a pretty small change that I think can be merged as-is. Would you mind merging when you get the chance?

return [result]

def _get_plaintext_node(
self, tag: str, file_basename: str, relative_tag_dir: Path
Copy link
Collaborator

Choose a reason for hiding this comment

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

relative_tag_dir is now unused, right?

Copy link
Contributor Author

@AnneCYH AnneCYH Sep 9, 2025

Choose a reason for hiding this comment

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

Ah yes thanks for catching that. Let me update this.

Done! Thank you.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@story645 , would you be able to merge the PR?
Thanks.

AnneCYH and others added 2 commits September 9, 2025 12:16
- Use root relative link instead of directory-relative URL which caused tags to be appended to the on-page tags for plaintext nodes.
- Use directory-style URLs instead of appending .html to match the implementation for badges.
@story645 story645 merged commit ada850d into melissawm:main Sep 11, 2025
2 checks passed
@story645
Copy link
Collaborator

@AnneCYH can you please update the tests? It looks like it's causing CI failure and I'd rather merge that then revert this but I don't have time to update the tests :/ #119

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.

5 participants