Create URL-friendly slugs?
Options
Brandon Hassler
Member ✭
I'm in the middle of creating a function stack that grabs a number of items and mashes them all together to make a URL slug for my site. Here is a sample:
That works great for that particular item, but when looking through my product table I'm seeing a lot of MDN (model numbers) that use characters like spaces & periods. Here are some examples:
- Pro MP242C
- UM.QP1AA.P01
- 24HC1QR Pbidpx
- E278B-QPN168+
- Dell S2522HG - 1J0VT
- 2V6B2AA#ABA
It would be nice to have the MDN as part of the URL slug for SEO purposes, but if the solution to this is overly complicated, might be worth skipping this.
Is there by a chance an easy way to auto encode stuff like this into URL-friendly formats?
Comments
-
Of course right after I post this I tried out the "url_encode" filter 🤦♂️ That (I think) solves it! Xano always 5 steps ahead of me.
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback