How to Manually Edit the URL / Filename of Posts

Link: https://support.brilliantdirectories.com/support/solutions/articles/12000077359

It is possible to edit the Filename URL of a post. You can find this functionality in the "Actions" dropdown for each post on the Manage Posts page, labeled "Customize Post URL".




How to Customize the Post URL


Click on "Customize URL":


Choose a URL Type

A popup will appear allowing the admin to choose between the following options:


Use Default Post URL – The URL automatically updates based on the post’s title.


Custom URL – Set a custom, static URL for this post.

Using the Default Post URL

If you select Default Post URL, the system will not allow the URL to be edited.


Using a Custom URL

If you select Custom URL, the admin can enter a new custom URL for the post. The system will validate the URL to ensure it is unique and not already in use by other posts, members, locations, web pages, or categories.


The system will also verify that the URL does not start with http, a domain name, or a /.


Invalid URL Errors

If the URL is invalid, the system will display the error "Invalid URL" and will not allow the changes to be saved.


The new URL will take effect immediately, and the system will automatically create the necessary 301 redirects for any changes made.


Allow Members to Customize Post URLs Using a Form Field

In addition to customizing the post URL from the Manage Posts page, there is now a way to allow users to modify the URL directly from the post submission form.

This is done by adding a custom variable called custom_filename to the form of the post type.


When this variable is present in the form, users can enter a custom filename, which will be used to generate the post’s URL automatically.


Example: Adding the Custom Filename Field to the Products Form

Below is an example of how to add the custom_filename field to the Products feature form so members can set their own product URLs.


  1. Go to Admin Dashboard → Toolbox → Form Manager. Look for the Feature - Products form, click on Actions, hit Customize.
  2. Click Add New Field +.
  3. Set the field type to Text - Single Line.
  4. Configure the field settings as follows:

    Label: Custom URL (or similar)
    Variable Name: custom_filename
    Field Help Text: (Optional) Enter a custom URL for this product. Do not include spaces, slashes, or special characters.
    Enable only Input View for the user to enter the new URL.
  5. Save the form field and ensure it is enabled on the Products submission form.


    Here is how the field will appear for the member:



The default URL is automatically generated using the post title. For example:

https://contentdocumentation.directoryup.com/products/ninja-master-prep-26

When a custom URL is used, the filename portion of the URL changes, like this:

https://contentdocumentation.directoryup.com/products/ninja-master-prep-best

In this example, /products is the post type URL and cannot be removed. While it can be modified, doing so would change the URL for the entire post type, not just an individual post. To rename or update the post type URL itself, refer to the following article:  How To Change The Name, Tab Title & URL Of A Post Type 



How the Custom Filename Works

When a value is entered into the custom_filename field:

  • The system validates the filename to ensure it is unique.
  • If valid, the post URL will be generated using the custom filename.
  • If the URL is changed later, the system will automatically create the required 301 redirect.


If the entered value is invalid, the system will display an Invalid URL error and prevent the post from being saved.