URL host name not recognised correctly

Created on 23 September 2023, about 1 year ago
Updated 17 October 2023, about 1 year ago

Problem/Motivation

If we add a hostname on either blacklist or white list without HTTP or www it doesn't add nofollow attribute to the links.

Steps to reproduce

1. Go to /admin/config/content/formats and select a format to edit.
2. Enable no follow list from the list of filters.
3. Add url to the no-follow list config form.
4. Choose blacklist/whitelist and fill in hostnames.
5. Go to the article, and add multiple URLs on the body field of the same hostname with www and http/https in it.
6. Check for the results on the view page it should add rel as nofollow if it's in the blacklist but it will only add for HTTP/https values, not for the URL having www with https i.e. 'https://www.example.com'.

Proposed resolution

1. Add a more elaborate description to only enter hostname not value with http/https on config form.
2. The plugin should check whether the entered URL contains www or not in it.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇮🇳India adwivedi008

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024