New Slug Feature for Customizable URLs

Hey all,

Strange, the “slug” field is not available in my data types, and the “Set a sug’s thing” workflow action is also not available…

Is there anything to do to get the benefits of this feature ? I didn’t succeed in finding any relevant settings option…

Many thanks !

Hi @zoe,

Are there any plans to have the Slug used as a dynamic URL in the sitemap.xml? Currently, my dynamic urls contain my page reference, but also the unique ID of the record. It would be nice and if we could drop the unique ID of the record, if possible.

Thank you,
G

(fixed : I had to force the refresh of my editor… :smirk:)

@allenyang

I’m experiencing a bug since the new slugs were introduced.

It looks like the "Current Page User’ cannot be read by logged-out users on pages which use a User’s slug to identify the Current Page User…

I have a condition When Page Loaded -> ‘Go to Login Page When Current Page User Empty’

This page ALWAYS directs to to the login page for logged out users, even when the Current Page User is not empty. I don’t have any issues with logged in users.

This looks like a data reading issue. Do I need to change privacy permissions for slugs? I didn’t have an issue when the pages were using unique ids to identify Current Page User.

Possibly, but I’m not sure I 100% understand what you’re trying to build. (That workflow sounds like it’s correctly redirecting logged-out users to your login page.) Could you file a bug report with more details so somebody from our Success team can take a look?

Cool! Now I have to figure out a migration from the pseudo slugs I’ve been using ^^"

Nice! Please adjust the code so:

  1. Repeating hyphens are replaced by a single hyphen
  2. Trailing hyphens are removed

Hey @zoe, thanks a lot for the update.
It looks really good. I’m curious if you consider extending Slugs to contain dots and underscores as well?

In my usecase, I’d be glad to use Instagram / Tiktok usernames of my users as Slugs, but I cannot since Tiktok/Instagram usernames allow underscores and dots…

Thanks in advance.

2 Likes

Hi everyone! I want to import Slugs as CSV data but the bulk upload function doesn’t recognize my field. Is it possible to do so ?

Thanks

@zoe I just noticed about privacy rules.

When a data thing with slug is private, other users who cannot search the thing (invalid privacy rule) can still set a thing’s slug with a slug similar to a private thing. Thus, that is not a unique slug when privacy rules applied.

I’m having an issue concerning slugs in url paramaters. The situation is as follows:

The default value of a searchbox is "get data from page url -> paramater “z” as type THING

When I pass the unique id as z, it works fine, setting the default value to the THING with that unique id. HOWEVER, if I pass the thing’s slug as z, it doesn’t recognize it.

Is this intended behavior?

Great update, guys! Exactly what was needed.

Keep up the good work :ok_hand:

Hello @allenyang I’ve started using the slug feature, but it breaks features using the Get the path from the URL - which is one the few ways to get the page thing inside a reusable element when anoher the defaut element Thing must be another one.
Is there a timeline for this working ? is it planned ?

I’m not clear whether you’re describing a bug or a missing feature here, so would you mind filing a bug report?

with current page thing’s unique id in the URL, get the path’s thing works :
image

but if the current page’s thing uses a slug, get the path’s thing doesn’t work :
image

Use parameters instead then

you did not get my point

Oh… I see what you’re saying… the “Get data from page URL” function not working with slugs, this must be a bug. You might want to file a bug report here: https://bubble.io/bug_report

1 Like

Did you guys get anywhere with this. I am stuck with this problem too. I have just refactored my app to use slugs in this way and they don’t seem to work with Get data from URL.

Okay, so I ran into an issue with this as well so I reached out and got a response from @carla

So there is 1 workaround in here I can think of:

  1. Do a search of organization, slug = Get Data from Path (Type: Text):first item