Title Tag Bug - Can't add symbols to title anymore
Ever since the latest 5.1 version, we cannot save title tags in the backend for pages that contain symbols anymore.
When we try to save Title & Properties, the following message appears: "The 'Title for search engines' contains invalid symbols."
Why is that and can you please fix it?
Thanks
Hello,
There were some changes in the validation of the SEO title made is Sitefinity 5.1. There are certain regular expressions that verify the entered title for the front-end pages. They need to be modified to allow the special characters you are trying to add.
Each Front-end page has several Views - FrontendPagesCreate, FrontendPagesEdit and FrontendPagesList. Each of the FrontendPagesCreate and FrontendPagesEdit views will have its own definitions for the HtmlTitle field.
In order to allow any special character you need to do two things:
1. Configure the mirror field RegularExpression, so the special characters do not get replaced by the "-"
2. Go to the field validation settings and modify the RegularExpression there as well, so the field value passes validation. To allow all special characters, you need to add the unicode range for them. For example: \u0E00-\u0E7F.
When you do this for both views you should have no problems adding the desired symbols in the HtmlTitle field. For your convenience I've recorded a short video demonstrating how you can do that.
The video shows how to do it for the FrontendPagesEdit view. The FrontendPagesCreate view will be the same. I have also showed how to change the URL name mirroring and validation as well in case you want that to allow for example Thai characters.
Kind regards,
Stefani Tacheva
the Telerik team
Stefani,
Thanks for your detailed answer. We followed your video instructions but the result is still the same: we are unable to add symbols to the title for search engines.
Why did you add this filter by default to the new version of sitefinity? We understand SEO and don't spam in our titles with exclamation marks and as such we would like to regain full control.
Thanks
Hi,
If you want to have the ability to add different symbols you need to remove all the Regular Expression Filters and Regular expressions. Please review the video I have recorded. In the video I am demonstrating how you can remove Regular Expression Filter and Regular expression for SEO title and UrnName field for FrontendPagesEdit view. If you want to add symbols to new pages you need to remove Regular Expression Filters and Regular expressions for FrontendPagesCreate view. Furthermore if you do not want special symbols in your URL, there is no need to remove the expression filters.
Regards,
Stefani Tacheva
the Telerik team