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

Allow external links to start with "www.*" #2100

Merged
merged 2 commits into from
Feb 14, 2023

Conversation

pqcfox
Copy link
Contributor

@pqcfox pqcfox commented Feb 14, 2023

Sanity check:

  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

Code changes

  • Are you doing the PR on the next branch?

  • Have you created/updated the relevant documentation page(s)?

Description

This PR addresses #1967 by changing is_external_link to consider links with URLs starting with "www." as external links.

@pqcfox pqcfox changed the title Add www external urls Add "www." external urls Feb 14, 2023
@pqcfox pqcfox changed the title Add "www." external urls Allow external links to start with "www.*" Feb 14, 2023
@pqcfox pqcfox changed the base branch from master to next February 14, 2023 06:53
Copy link
Collaborator

@Keats Keats left a comment

Choose a reason for hiding this comment

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

Thanks!

@Keats Keats merged commit 11b4903 into getzola:next Feb 14, 2023
Keats pushed a commit that referenced this pull request Feb 16, 2023
* Make www.* URLs considered valid external links

* Tweak description of is_external_link
@trwnh
Copy link

trwnh commented Mar 1, 2023

I'm really confused what this PR is supposed to do -- a link starting with www. isn't an external link, and trying to load it in a browser will just append it to the current URL. testing www.test.com

@Keats
Copy link
Collaborator

Keats commented Mar 1, 2023

That's true, it should probably be reverted.

Keats added a commit that referenced this pull request Mar 8, 2023
Keats added a commit that referenced this pull request Mar 19, 2023
theowenyoung added a commit to theowenyoung/zola that referenced this pull request Mar 19, 2023
* 'master' of https://github.com/getzola/zola:
  Set release date
  Update changelog and disable clippy in CI for a bit
  Implement Default for LanguageOptions (getzola#2145)
  Fix cachebusting not working with binary files
  Fix tests
  Update changelog
  Use page.summary if available (getzola#2141)
  Update deps
  Remove dummy test
  Fix tests
  Update changelog
  Revert "Allow external links to start with "www.*" (getzola#2100)"
  Fix index errors (getzola#2129)
  Fix a page missing from e2e test
  Next verison
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.

3 participants