Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linkedin URL base error #933

Closed
2 of 3 tasks
MissVeronica opened this issue Oct 8, 2021 · 0 comments · Fixed by #937
Closed
2 of 3 tasks

Linkedin URL base error #933

MissVeronica opened this issue Oct 8, 2021 · 0 comments · Fixed by #937

Comments

@MissVeronica
Copy link

Expected behavior
The issue is that some users need to use their company LinkedIn URL, which has a different structure than user URLs, UM adds the base URL and the profile field is saved with both the Linkedin URL base and the user entered company URL creating a link with two http:// which the browser can't direct to LinkedIn.

Isolating the problem (mark completed items with an [x]):

  • I have deactivated other plugins and confirmed this bug occurs when only Ultimate Member plugin is active.
  • This bug happens with a default WordPress theme active, or UM Theme.
  • I can reproduce this bug consistently using the steps above.

Describe the bug
There is only one option in UM core for validation of the social links and in this case there are two possible URL formats to verify for Linkedin URL's.

To Reproduce
Steps to reproduce the behavior:

  1. Create a pre-made field for Linkedin on the user’s profile page
  2. Edit the profile page and add this Linkedin URL: https://www.linkedin.com/company/soytutipo-design/
  3. Save and display the profile page
  4. Click the Linkedin URL link which now looks like this: https://linkedin.com/in/https://www.linkedin.com/company/soytutipo-design/

Expected behavior
A valid Linkedin company URL.

WordPress Environment
WP 5.8.1
UM 2.2.5

UM Support Forum issue
https://wordpress.org/support/topic/linkedin-url-base-error/
The issue is currently resolved with a code snippet to remove the extra Linkedin URL base if it's a Linkedin company URL before saving the edited profile form to the DB.

@ashubawork ashubawork linked a pull request Oct 25, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants