Automattic / Automattic/jetpack

Mailchimp: Calypso links do not take subdirectories into account

Open
#14,156 2 comments 0 reactions 0 assignees View on GitHub
[Block] Mailchimp [Pri] Low [Status] Stale Bug
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

#### Steps to reproduce the issue

1. Start from a site where [WordPress is installed in a subdirectory](https://wordpress.org/support/article/giving-wordpress-its-own-directory/).
2. Connect to WordPress.com.
3. In a new post, add a Mailchimp block.
4. You'll notice that the help links in the block sidebar do not link to the right Calypso pages; it does not include the subdirectory in the URL.

It would appear that `get_memberships_settings_for_site` on WordPress.com would need to be adapted to take such sites into account.

Reported here:
p8oabR-qW-p2#comment-3664

Contributor guide

Open the contributing guide

Research direction

Start by locating get_memberships_settings_for_site and the Mailchimp block sidebar code that builds the Calypso help links. Reproduce the issue with WordPress installed in a subdirectory, then verify that the links include that subdirectory and open the correct Calypso pages.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.