• I’m working with Broadbean to complete a clients integration and they have requested that the URL is returned non-encoded.

    The URL is currently being returned to them as:
    clientsdomain.com/jobs/t%c5%91ke-%c2%a3-%e2%82%ac-2-915/

    However they have requested to return
    clientsdomain.com/jobs/t?ke-£-€-2-915/

    I’ve had a rummage in the codebase and have found templates/inbox.php where line 253-258 echos the response I’ve seen when posting the XML:

    	// set some echo text.
    	$text = sprintf(
    		// translators: 1: job post id.
    		__( 'Success! Job added/updated with a post ID of %1s. You can view the job here: %2s', 'wpbroadbean' ),
    		$job_id,
    		get_permalink( $job_id )
    	);

    Can I sanitise this string to return the clean domain as requested, or do I need to approach this in a different way?

    TIA for your feedback on this.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Highrise Digital

    (@highrisedigital)

    This is not something we have seen before. I have tested this on my test environment and the URL is returned without being encoded. Have you anything else installed that may be causing that to happen?

    Thread Starter sipiggles

    (@sipiggles)

    Thanks for coming back to me on this.
    I have just tested this in a staging environment with no plugins active except for Broadbean and I’m still getting the an encoded URL back when using characters such as £ or € in the job title.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Unencoded URL’ is closed to new replies.