• Resolved pguilha

    (@pguilha)


    On a few jobs posted by users (found 8 jobs with the problem in 200+ so far), it seems the links they’ve included in their listing are broken in a very odd way. For example, https://example.com/en became ””//example.com/en/”””
    I don’t know how this can be user error or how to reproduce it. Could it be something to do with which browser people are using?

    Sometimes it’s all the links in the listing that have this problem, sometimes it’s just some of them.

    I’m at a loss and would appreciate some guidance!
    thanks

    • This topic was modified 4 years, 7 months ago by pguilha.
    • This topic was modified 4 years, 7 months ago by pguilha.
Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Contributor Cena (a11n)

    (@cena)

    Hi @pguilha ,

    Do you have a link you could share so we can take a closer look?

    Are you sure the user(s) aren’t entering the URL incorrectly to begin with?

    Best,
    Cena

    Thread Starter pguilha

    (@pguilha)

    Hi @cena,

    Unfortunately I don’t have a link as this happens during job submission so I correct the links before approving the job listings.

    As it’s happened to dozens of users, and not on every link included within their listing, I can’t imagine they would all be entering some links wrong in this same strange way. It’s a wp-editor front-end box they are using, inserting links using the built-in function for that or copy/pasting in links.

    Any thoughts on what I could do to diagnose this?

    Plugin Contributor Cena (a11n)

    (@cena)

    Hi @pguilha ,

    > It’s a wp-editor front-end box they are using, inserting links using the built-in function for that or copy/pasting in links.

    How does this work? Is this some custom code, or a plugin you’re using to accept job listings? I ask because it doesn’t sound like the default WPJM job submission form. ??

    Best,
    Cena

    Thread Starter pguilha

    (@pguilha)

    I’m using the workscout theme, I guess it’s possible that modifies the standard WPJM job submission form?

    Plugin Contributor Cena (a11n)

    (@cena)

    HI @pguilha ,

    Possibly, but I’m not familiar enough with Workscout to say. Their support may be worth checking in with about this.

    Are you able to reliably duplicate the issue with links? If so, I’d try checking for a theme and/or plugin conflict first.

    If you’re not able to duplicate the issue, that makes it more difficult to (quickly) test, although I still suspect it’s a theme or plugin conflict.

    Best,

    Thread Starter pguilha

    (@pguilha)

    thanks @cena. I can’t replicate the issue, it seems so random. Even in listings that have the issue it’s rarely all the links in that listing that are affected.

    I’ll get in touch with workscout and post back here if this gets resolved.

    Plugin Contributor Cena (a11n)

    (@cena)

    HI @pguilha ,

    Definitely interested to hear if Workscout figures it out!

    An idle thought – are there any JavaScript errors in your browser’s console? You can find guidance for checking this here, if you need it:

    https://en.support.wordpress.com/browser-issues/advanced-browser-troubleshooting/#javascript-errors

    Best,
    Cena

    Thread Starter pguilha

    (@pguilha)

    Hi @cena, thanks for that suggestion. I’m not seeing anything that could explain this, unfortunately.

    Plugin Contributor Cena (a11n)

    (@cena)

    Hi @pguilha ,

    Did you ever hear from Workscout about this, or figure out what was happening? I don’t have any good suggestions, unfortunately, but I’d love to hear whether Workscout had any suggestions.

    Best,
    Cena

    Thread Starter pguilha

    (@pguilha)

    Hi @cena,

    No explanation from them either. Seems to be confusing everyone! I’ve noticed that the WP editor box during job submission has a few settings to clean up any pasted text so I’m going to trial some changes there to see if it helps.

    If you have any suggestions of the ideal settings to use I’m all ears! in particular, I’d like to allow users to paste preformatted content (hyperlinks, bold, italic, bullet points, etc..) without having it all stripped away but I also want to keep the font uniform across the site, prevent pasting of images, and avoid any security issues that might come from allowing all html tags to be included. Any suggestions? The current settings are below:

    $editor = apply_filters(
    ‘submit_job_form_wp_editor_args’,
    [
    ‘textarea_name’ => isset( $field[‘name’] ) ? $field[‘name’] : $key,
    ‘media_buttons’ => false,
    ‘textarea_rows’ => 8,
    ‘quicktags’ => false,
    ‘editor_css’ => ‘<style> .mce-top-part button { background-color: rgba(0,0,0,0.0) !important; } </style>’,
    ‘tinymce’ => [
    ‘plugins’ => ‘lists,paste,tabfocus,wplink,wordpress’,
    ‘paste_as_text’ => false,
    ‘paste_auto_cleanup_on_paste’ => false,
    ‘paste_remove_spans’ => false,
    ‘paste_remove_styles’ => false,
    ‘paste_remove_styles_if_webkit’ => false,
    ‘paste_strip_class_attributes’ => false,
    ‘toolbar1’ => ‘bold,italic,|,bullist,numlist,|,link,unlink,|,undo,redo,|,code’,
    ‘toolbar2’ => ”,
    ‘toolbar3’ => ”,
    ‘toolbar4’ => ”,
    ],
    ]
    );

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘user-submitted hyperlinks randomly broken’ is closed to new replies.