Don’t change URL when editing headline

I need to be able to stop the URL updating when i edit the headline of a database field.

currently when i edit and save the article on the blog system i have created, the URL changes and this causes the link to become dead. how can i stop this?

Which link do you mean? From inside Wix, or from outside, as in a static link?

Hi Robert,

It’s not clear to me what URL and what database headline you are referring to. Can you provide a more detailed explanation? Or add screen shots?

Thanks,

Yisrael

Hi Yisrael,

Thanks so much for taking the time to look at this for me, i appreciate it - let’s get started…

So basically i have built an “alerts” system, this enables me to create weather warnings, travel warnings and display them in repeaters.

Like this:

However, i have a page where i can “EDIT” the alert which looks like this…


As you can see, i have the ability to change the headline (The title of the alert) which is at the top (below the edit photo button).

Once i edit this title, the URL changes to match, but i don’t want the URL to change as this then creates a dead link on Social Media.

Hope this makes sense! :slight_smile:

i ran into the same thing months ago. The only solution is to remove the title from the url definition and substitute it with something unique that never changes, like _id. Result is less readable, but guaranteed unique, thus constant.

PS Come to think of it: there is a second solution. On your form, you put two text fields. One bound to the Title and a second one bound to a new DB field, called copyTitle. On your form, when 2nd is empty, you put the value of the first (saves typing). In EDIT mode, you disable the first, so you can only edit the copy. In your repeater, you display the copyTitle, while for URL, you use the first. This keeps URL readable and constant, but allows you to edit the headline without altering the URL.

Hey Giri - you’re on fire today. :slightly_smiling_face:

So Yisrael. This is the only soloution?! :frowning:

I also need help with a text block which is showing a date, but the date isn’t formatted. Do we have any soloition??

Please help