Problem/Motivation

create_node returns url/edit_url as relative paths (/node/12/edit). MCP
clients are external and can't resolve the site host, so the links aren't usable as-is.

Proposed resolution

Add setAbsolute() in CreateNodeTool::execute():

  'url' => $node->toUrl()->setAbsolute()->toString(),
  'edit_url' => $node->toUrl('edit-form')->setAbsolute()->toString(),
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

amitaibu created an issue. See original summary.

andrey.troeglazov made their first commit to this issue’s fork.

andrey.troeglazov’s picture

Status: Active » Needs review

andrey.troeglazov’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.