• Resolved Anonymous User 16052280

    (@anonymized-16052280)


    Hi guys,

    When I open a ticket in the tickets list I am redirected to an URL:
    http://www.website.com/ticket/…

    Is it possible to edit the plugin in order to change that “ticket” name inside the URL?
    And change it to something like “Support”, “Customer” or anything else based on our specific needs?

    Thank you,
    Andrei

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author awesomesupport

    (@awesomesupport)

    Hi:

    Thanks for using Awesome Support!

    If you wish to change the slug ticket to something else, let’s say “help”, so that your URLs look like domain.com/help/my-ticket-title, you need to add a constant in your theme’s functions.php file as follows:

    define( ‘WPAS_SLUG’, ‘my_new_slug’ );

    Thread Starter Anonymous User 16052280

    (@anonymized-16052280)

    Hi,

    So for “help” is it the line below?
    define( ‘WPAS_SLUG’, ‘help’ );

    I added it inside my functions.php but nothing changed.

    Thank you,
    Andrei.

    Plugin Author awesomesupport

    (@awesomesupport)

    hmmm….can you try adding it to your wp-config.php file and see if that helps?

    Thanks.

    Thread Starter Anonymous User 16052280

    (@anonymized-16052280)

    At this point I have the line
    define( ‘WPAS_SLUG’, ‘help’ );
    both in my functions.php and wp-config.php files.

    Cleaned my cache, clicked Save Changes in Settings-Permalinks but still no result. Are you sure this line works?

    I am using WordPress 4.9.8, Awesome Support 5.7.1 and Divi theme.

    Thank you,
    Andrei.

    Plugin Author awesomesupport

    (@awesomesupport)

    Hi:

    That should work. I have the slug set on my test install to “mytickets” with the divi theme and that works just fine. (I added it to wp-config).

    Do you have another plugin that modifies custom post types in some way? Some plugins try to manage custom post types which would including setting the slug. If you have one of those that might be getting in the way.

    Thanks.

    Thread Starter Anonymous User 16052280

    (@anonymized-16052280)

    The code you provided above
    define( ‘WPAS_SLUG’, ‘my_new_slug’ );

    is not correct. This is the correct one
    define( 'WPAS_SLUG', 'my_new_slug' );

    Now I have it working.

    Thank you,
    Andrei.

    Plugin Author awesomesupport

    (@awesomesupport)

    Oh, I see, it pasted in the single quotes as a different characters. You are correct, it should be single quotes around both parms in the define statement.

    Thanks for pointing that out.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘URL name’ is closed to new replies.