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

Alternate URLs: Always un-hyphenate #2426

Open
captn3m0 opened this issue Feb 1, 2023 · 3 comments · May be fixed by #5099
Open

Alternate URLs: Always un-hyphenate #2426

captn3m0 opened this issue Feb 1, 2023 · 3 comments · May be fixed by #5099
Assignees
Labels
enhancement New feature or request

Comments

@captn3m0
Copy link
Member

captn3m0 commented Feb 1, 2023

Is your feature request related to a problem? Please describe.
Many of our alternate_urls are based on removing hyphens from the canonical URLs. For eg:

antix-linux -> antixlinux
vmware-vcenter -> vmwarevcenter
vmware-srm -> vmwaresrm
ruby-on-rails -> rubyonrails
vmware-horizon -> vmwarehorizon

Describe the solution you'd like
Automatically generated un-hyphenated variants of each permalink, so these don't have to be added manually.

Describe alternatives you've considered
Adding support for underscores as well similarly (so /nutanix_prism will go to /nutanix-prism as well).

Additional context

Discussion at #2401

@captn3m0 captn3m0 added the enhancement New feature or request label Feb 1, 2023
@captn3m0 captn3m0 self-assigned this Feb 1, 2023
@marcwrobel
Copy link
Member

This will require a new Jekyll filter that take as its input the list of all pathes (permalink + alternate_urls) and returns a new list with all those pathes plus the un-hyphenated pathes (without duplicates).

@captn3m0
Copy link
Member Author

Think this could be done within Liquid directly.

Will take this up.

@marcwrobel
Copy link
Member

Would be best if alternate_url was enriched in https://github.com/endoflife-date/endoflife.date/blob/master/_plugins/product-data-enricher.rb.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants