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

Add ability to canonify URLs in rendered XML output. #728

Closed

Conversation

popthestack
Copy link
Contributor

A fix for #725.

I'm not sure if I'm approaching this the right way. Please let me know what needs improvement.

Notes:

  • Assumes that canonifying URLs in escaped HTML in regular (non xml) content is not desired.
  • AbsURLInXML assumes content will be escaped with | html.
  • Not sure if AbsURLInXML should also look for unescaped content.

@popthestack
Copy link
Contributor Author

Is there any reason not to canonify urls in XML feeds? Seems like it should happen regardless of the CanonifyUrls setting.

@bep
Copy link
Member

bep commented Dec 19, 2014

I see no good reason why it shouldn't always be canonified. Maybe @spf13 have some input?

@spf13
Copy link
Contributor

spf13 commented Dec 19, 2014

I can't see a good reason for it not to be always canonified either. I think this is simply an oversight from that canonization feature, a recent addition.

@popthestack
Copy link
Contributor Author

Modified it so the rendered XML always canonifies urls.

The failed test is unrelated (TestPageMenu).

@bep
Copy link
Member

bep commented Dec 26, 2014

Merged in 7dacc99. Good catch.

@bep bep closed this Dec 26, 2014
@anthonyfok anthonyfok added this to the v0.13 milestone Jan 17, 2015
@github-actions
Copy link

github-actions bot commented Mar 5, 2022

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants