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

Suggestion for internal links not working on Gutenberg paragraph block (Multisite) #34125

Open
2 tasks done
Tracked by #35073
tezell-mg opened this issue Aug 17, 2021 · 3 comments
Open
2 tasks done
Tracked by #35073
Labels
[Feature] Link Editing Link components (LinkControl, URLInput) and integrations (RichText link formatting) [Feature] Multisite Anything related to the specific experience of using a multisite [Type] Bug An existing feature does not function as intended

Comments

@tezell-mg
Copy link

Description

When on a multisite network and in the Gutenberg paragraph block editor the link suggestion feature is not working. It works fine on single site.

image

Console error:
image

In case the image is too hard to read on the consol error "GET http://sage-life-site-network.lndo.site/wp-json/wp/v2/search?search=55&per_page=20&type=term&_locale=user" "400 Bad Request"a

Step-by-step reproduction instructions

  1. On a site within a multisite network create and publish a page (Page A)
  2. Create a second page and on that page (using the Gutenberg paragraph block) add text to that page.
  3. Select some of the text and click the Link button.
  4. Begin to type the title of the page created in Step 1

Notice that the suggestion functionality does not work. This is the issue.

Screenshots, screen recording, code snippet

multisite-link-suggestion-img-1
multisite-link-suggestion-img-2

Environment info

WordPress Version: 5.7
All Browsers
MacOS 11.1

Pre-checks

  • I have searched the existing issues.
  • I have tested with all plugins deactivated except Gutenberg.
@swissspidy swissspidy added [Feature] Link Editing Link components (LinkControl, URLInput) and integrations (RichText link formatting) [Feature] Multisite Anything related to the specific experience of using a multisite [Type] Bug An existing feature does not function as intended labels Aug 18, 2021
@getdave
Copy link
Contributor

getdave commented Nov 16, 2021

@anton-vlasenko @spacedmonkey Are either of you familiar with any quirks of multisite which might make the search endpoint of the REST API not work? For example, would we need to pass a blogID when making the request?

@mrfoxtalbot
Copy link

@igmoweb, @jconti, do you have any thoughts on what could be causing this feature not to work as expected in multisite? Thank you!

@getdave
Copy link
Contributor

getdave commented Aug 26, 2022

For clarity here is the endpoint being requested in the code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Link Editing Link components (LinkControl, URLInput) and integrations (RichText link formatting) [Feature] Multisite Anything related to the specific experience of using a multisite [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

4 participants