Alternative Hreflang for SEO is a Drupal module that allows the language code in hreflang attributes to be customized, without writing any code and without altering the registered langcode used in the website's URLs. This might be needed when you (or a previous developer) have added a custom language to the site with a custom langcode and you have since been advised there is a more suitable ISO language code for the hreflang attribute, but you do not want to repoint all of your existing pages.

The module provides an admin settings form which lists all of the languages enabled on the website and allows the language codes to be customised for the hreflang attribute only. The settings form enables a site owner or SEO agency, when granted the relevant permissions, to make changes to the hreflang language codes without needing a developer to add code to a custom module.

Similar modules

The key difference between this project and https://www.drupal.org/project/hreflang is that if you want to alter the language code in the hreflang element, then Hreflang requires code to be written in a custom module whereas this module does not. Hreflang might be a better starting point for developers who want full control over the code and would like to do more with the hooks they are writing; this is a simple implementation to assist non-developers.

Project link

https://www.drupal.org/project/seo_alt_hreflang

Comments

kewesley created an issue. See original summary.

kewesley’s picture

Status: Active » Needs review
vishal.kadam’s picture

Thank you for applying!

Please read Review process for security advisory coverage: What to expect for more details and Security advisory coverage application checklist to understand what reviewers look for. Tips for ensuring a smooth review gives some hints for a smoother review.

The important notes are the following.

  • If you have not done it yet, you should run phpcs --standard=Drupal,DrupalPractice on the project, which alone fixes most of what reviewers would report.
  • For the time this application is open, only your commits are allowed.
  • The purpose of this application is giving you a new drupal.org role that allows you to opt projects into security advisory coverage, either projects you already created, or projects you will create. The project status won't be changed by this application and no other user will be able to opt projects into security advisory policy.
  • We only accept an application per user. If you change your mind about the project to use for this application, or it is necessary to use a different project for the application, please update the issue summary with the link to the correct project and the issue title with the project name and the branch to review.

To the reviewers

Please read How to review security advisory coverage applications, Application workflow, What to cover in an application review, and Tools to use for reviews.

The important notes are the following.

  • It is preferable to wait for a Code Review Administrator before commenting on newly created applications. Code Review Administrators will do some preliminary checks that are necessary before any change on the project files is suggested.
  • Reviewers should show the output of a CLI tool only once per application.
  • It may be best to have the applicant fix things before further review.

For new reviewers, I would also suggest to first read In which way the issue queue for coverage applications is different from other project queues.

vishal.kadam’s picture

Issue summary: View changes
kewesley’s picture

Thank you Vishal.

I have run phpcs as suggested and have also added the Gitlab CI template.

vishal.kadam’s picture

Status: Needs review » Needs work

Usually, after reviewing a project, we allow the developer to opt projects into security advisory coverage.

This project is too small for us and it doesn't contain enough PHP code to really assess your skills as a developer.

Have you created any other project on drupal.org (module, theme, distribution) we could instead review? The project needs to have most of the commits (preferable all the commits) done by you.

kewesley’s picture

Unfortunately, I don't have any other projects on drupal.org yet where I have committed the majority of the code to the project. I will keep this in mind when creating projects in future.

Thank you for your time.

kewesley’s picture

Status: Needs work » Closed (won't fix)