Drupal 8. Make a refinement of the site for SEO. Replace part of the links via Post Redirect Get
We are looking for long-term cooperation of a person, to perform improvements on the site.
Now there is a task for SEO optimization. It is necessary to replace some of the links on the site (hide from indexing) with buttons with a redirect.
You need to hide the links using the Post Redirect Get technology. Instead of a reference, you must create a form that passes data to the server using the POST method. The necessary (hidden) URL is taken as data.
When you submit a form to the server, the data is redirected to the correct URL.
With a redirect, we notify the browser that it should receive the data of the new page via GET and display the page.
This replaces the link with a classic button. With the help of CSS styles, the button is replaced with a traditional link for the site.
Related article:
drmax.su/prg-pattern-link...
Experience with Drupal 8 is a must.
Revision tasks arise regularly. Further cooperation is possible.
28.01.2022 17:59