• Resolved indigetal

    (@indigetal)


    Hello,
    Any idea why the URL of a company features some random letters? Eg. https://msite.com/company/king-lrawqefhs-london-uk/

    Is there a way to avoid this? Ideally I would not include the city and state in the page url either. Changing it manually works until the company profile info is saved again and then it reverts back to the original slug.

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor Kader Ibrahim S

    (@ibndawood)

    Hello there,

    Thank you for trying out our plugin. The slug of company is not a functionality of the plugin. The slug is generated by WordPress core and the full URL is generated based on the permalinks settings in Settings > Permalinks. Please check the settings or check if there are any other third-party plugins that is interfering in the slug generation.

    Hope this helps. Let us know if you have any other questions or need further help.

    Thanks,
    Ibrahim

    Thread Starter indigetal

    (@indigetal)

    No, the company pages don’t follow the conventions set in the permalink settings: they were set to /%category%/%postname%/ but even changing it to just post name the path is still /company/appledjfl;ajdfljcupertino. Also, the characters are being inserted in the middle of the page slug, not in a directory path of the url. I don’t experience this issue on any other pages either and I know of at least one other person that is experiencing the same issue with random characters being inserted specifically in their company page slugs.

    Note too that if the page is updated on the backend within Gutenberg, the extra characters are not inserted into the page slug and we are also able to fix the page slug on the backend. However, whenever the company page is updated on the frontend the extra characters re-appear in the page slug once again.

    Also, what about the location appended at the end of the slug? That is not default WordPress behavior either – but it would be great to be able to remove that too.

    I assume that the plugin is compatible with the WP Job Manager plugin and it’s addons, but otherwise the only common factor between my site and other sites that I’m aware of is the use of the WorkScout theme and its plugin dependencies. If it’s definitely not happening on other sites using MAS Companies for WP Job Manager, it’s possible that it is a compatibility issue between it and WorkScout. The supporting plugins for WorkScout theme include:

    • Breadcrumb NavXT
    • CMB2
    • CMB2 Field Slider
    • Elementor
    • Envato Market
    • Purethemes.net CPT
    • Purethemes.net Shortcodes
    • WorkScout Elementor
    • WorkScout-Core – WorkScout WPJM Plugin by Purethemes
    • WP-PageNavi
    • This reply was modified 2 years, 9 months ago by indigetal.

    I’m experiencing the same issue as indigetal so keen for it to getting it fixed.

    Plugin Contributor Kader Ibrahim S

    (@ibndawood)

    Hello @indigetal and @lozmatic,

    Apologies for not responding earlier. Please allow me little time to run some tests and get back to you on this as soon as possible.

    Kindest Regards,
    Ibrahim

    Plugin Contributor Kader Ibrahim S

    (@ibndawood)

    Hello @lozmatic and @indigetal,

    I ran the tests on the default WordPress theme with various permalinks settings. I was not able to reproduce this issue. Here is the custom code to set the permalinks rewrite in the register post type:

    add_filter( 
    	'register_post_type_company',
    	function( $args ) {
    		$args['rewrite'] = true;
    		return $args;
    	} 
    );

    Please add the above code in your child theme’s functions.php, navigate to Settings > Permalinks and click on “Save Changes”. After this try adding a new company and let me know the results.

    Kindest Regards,
    Ibrahim

    Thread Starter indigetal

    (@indigetal)

    Hi Ibrahim,

    Sorry I didn’t see this earlier but I tested it and the issue is not resolved. I added the code to my child theme’s function.php file, saved the permalinks, and updated my company profile. The resulted url doesn’t refer to the company name at all: i.e. …/company/the-un1rdic5-research-triangle-nc/

    Plugin Author MadrasThemes

    (@madrasthemes)

    Hello again,

    Thank you for writing back. We are not sure what is causing the issue as we are not able to reproduce this issue in any of our test servers. We also installed the same number of public plugins that you’ve suggested to test this issue.

    If you look at the code base, you can conclude that the plugin is not responsible for generation of permalinks. We are most likely to conclude that the issue is originating outside of the plugin.

    Can you please test by disabling all third-party plugins, with only WPJM and MAS Companies For WP Job Manager plugins, and by switching to a default WordPress theme like TwentyTwentyOne and see if the issue is still there?

    • This reply was modified 2 years, 6 months ago by MadrasThemes.
    Thread Starter indigetal

    (@indigetal)

    Very strange… Could it be related to how the plugin behaves on a multisite network? I have done everything you said. Specifically, I created a test site, disabled all plugins (including network plugins), checked and resaved my permalinks, and activated the Twenty Twenty-Two theme, WP Job Manger, and MAS Companies For WP Job Manager plugins only. I submitted a test company on the frontend and, still, the company name in the url was “/test-if86bwo3-raleigh-nc/”. I checked several times over by re-saving on the backend and then editing it on the front end. If it’s not the plugin directly causing the issue, the only other variable is the multisite network.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Random Characters in Company Page URL’s’ is closed to new replies.