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.
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 :
- á à ã â À Á Ã Â @ → a
- é è ê ë É È Ê € → e
- í ì î Í Ì Î → i
- ó ò ô õ Ó Ò Ô Õ → o
- ú ù û ü Ú Ù Û Ü → u
- ç Ç → c
- ñ Ñ → n
- ý Ý → y
- & → and
- $ → s
- ¥ → y
- æ Æ → ae
- œ Œ → oe
- 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”.
How to use “Cleanup REGEX Url-SEO & API Optimizer” ?
Add an action to your workflow, using the “Regex_url_seo_optimizer” in the “plugins” section
In the “text_to_cleanup” field, add your string (or any query that return a string)
The plugin generates 2 strings (cleanup_string and url_seo_optimize) that you can retrieve in the next steps of your workflow.
1 - cleanup_string :
removing accents and replacing unwanted characters with spaces or capitalized letters (cleanup_string)
2 - url_seo_optimize :
optimize the string for SEO with lowercase and dashes (url_seo_optimize). The is the perfect solution for your page slugs with the “set a thing’s slug” Bubble function.