Third-party services or plugins hardly appreciate accents, diacritical marks and special characters: it often results in errors that interrupts the exchange.
To increase the chance your page goes up in search engine results, it is highly recommended to make your URL similar to your page's title.
You can clean any string in 4 different ways.
However, in its native URLs, Bubble also keeps those unwanted characters the search engines may not understand properly.
The "Cleanup REGEX Url-SEO & API Optimizer" plugin helps you clean any character string (text) in two different ways, so that you can use the one you need for your purpose :
1 - removing accents and replacing unwanted characters with spaces or capitalized letters (cleanup_string)
2 - optimize the string for SEO with lowercase and dashes (url_seo_optimize). This plugin is the perfect is the perfect solution for your page slugs with the "set a thing's slug" Bubble function.
Cleaning and optimization set of rules :
these characters are not exhaustive, you should check and if necessary I can add new ones if you want.
- á à ã â À Á Ã Â å Å ä Ä ă Ă @ -> a
- é è ê ë É È Ê € -> e
- í ì î Í Ì Î ïÏ-> i
- ó ò ô õ Ó Ò Ô Õ ø -> o
- ú ù û ü Ú Ù Û Ü -> u
- ç Ç -> c
- ñ Ñ -> n
- ý Ý -> y
- & -> and
- $ -> s
- ¥ -> y
- æ Æ -> ae
- œ Œ -> oe
- Ș ș -> s
- Ț ț -> t
- keep only one where the are 2 or more consecutive spaces
- All special characters are removed, as well as the spaces at the end of the cleaned string
- Lower case the whole string for "url_seo_optimize".
3 - Update1.1.0 : new string (cleanup_lowerc) : lowercase forced
4 - Update 1.2.x : new string (cleanup_upperc) : Uppercase forced
5 - Update 1.4.x : new string (cleanup_underlow) : white space and '-' replace by '_'
6 - Update 1.7.0 : Add special characters ï & Ï -> i
lot of add new characters.... You should check
7 - Update 1.11.x : Add special characters ø -> o
8 - Update 1.12 .x : Add special characters ă Ă ț Ț Ș ș -> a & t & s
9 - Update Major : Now the string is empty, an empty field is also returned, there is no more alert to signal (your-string-is-empty).
For some customers this alert was causing errors.
Back :
https://bubble.io/page?type=page&name=cleanup_regex_url_api_opt&id=inception-code-plugin&tab=tabs-1Preview :
https://inception-code-plugin.bubbleapps.io/version-test/cleanup_regex_url_api_opt?debug_mode=true