Skip to content

Restore an old link from policies using redirect #1587

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

Closed
wants to merge 1 commit into from

Conversation

leobalter
Copy link
Contributor

The logos and usage policies page pretty much have contents from the trademark page that moved back in 2022/2023.

As the previous link is still around, this redirect should function better than a 404.

The logos and usage policies page pretty much have contents from the [trademark page](https://web.archive.org/web/20220315191357/https://docs.npmjs.com/policies/trademark) that moved back in 2022/2023.

As the previous link is still around, this redirect should function better than a 404.
@leobalter leobalter requested a review from a team as a code owner May 20, 2025 17:35
@leobalter leobalter requested review from Copilot and a team and removed request for a team May 20, 2025 17:35
Copy link

@Copilot Copilot AI left a comment

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 restores a redirect from the old policies/trademark URL to the current policies/logos-and-usage page to prevent 404s.

  • Adds a new redirect entry in cli/lib/redirects.js for the trademarks policy page.
Comments suppressed due to low confidence (2)

cli/lib/redirects.js:65

  • Add a unit test to verify that the '/policies/trademark' path correctly redirects to '/policies/logos-and-usage'.
  'policies/trademark': () => ['policies/logos-and-usage'],

cli/lib/redirects.js:64

  • Align the indentation of the new comment and property with existing entries (use 4 spaces) to maintain consistent code style.
  // policies

@leobalter leobalter closed this May 20, 2025
leobalter added a commit that referenced this pull request May 20, 2025
Supersedes #1587 

This redirect restores an old link from trademark policies to our logos and usages page.

The logos and usage policies page pretty much have contents from the trademark page that moved back in 2022/2023.

As the previous link is still around, this redirect should function better than a 404.
@leobalter leobalter deleted the trademark-redirect branch May 20, 2025 18:45
leobalter added a commit that referenced this pull request May 20, 2025
This redirect restores an old link from trademark policies to our logos
and usages page.

The logos and usage policies page pretty much have contents from the
trademark page that moved back in 2022/2023.

As the previous link is still around, this redirect should function
better than a 404.

## References

Supersedes #1587
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