Automattic / Automattic/WP-Job-Manager
WPML - jm-ajax link and post translation 404 issues
- Dominant language
- PHP
- Stars
- 899
- Forks
- 369
- Avg merge
- 11h 37m
- Merged PRs (30d)
- 12
Description
#### Steps to Reproduce
Job listings page:
Include [jobs] shortcode on page and translate.
Job page:
Set job_listing settings as "appear as translated" in WPML config.
#### What I Expected
Job Listings page:
Would load jobs as list.
Job page:
Page loads "as translated", so that strings are translated but page content is not.
#### What Happened Instead
Job Listings page:
Failed to load jobs because of an AJAX error, as the link requested does not exist.
Job page:
Returns 404 when switching to secondary language
#### WordPress / WP Job Manager Version
WordPress: 4.9.5
WP Job Manager: 1.30.2
WPML: 3.9.1
#### Screenshot / Video
Job listing page AJAX error

404 page of job listing in secondary language

Contributor guide
Research direction
Start by reproducing the translated [jobs] shortcode page and the job page configured as “appear as translated” in WPML. Trace the missing AJAX link and the secondary-language 404 using the reported WordPress, WP Job Manager, and WPML versions. Done means translated listings load and the secondary-language job page returns the translated strings without a 404.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100