Skip to content

alter group paths centrally#2

Open
mfairchild365 wants to merge 1 commit into
unlcms:8.x-1.xfrom
mfairchild365:global-path-rewriting
Open

alter group paths centrally#2
mfairchild365 wants to merge 1 commit into
unlcms:8.x-1.xfrom
mfairchild365:global-path-rewriting

Conversation

@mfairchild365

Copy link
Copy Markdown
Contributor

This will work for any output including json, etc. The link_alter() method was only being applied to html output. As far as I can tell with my testing (which might be lacking) this appears to still work in all the same cases that link_alter() was implementing. By the time a node/x reaches the processOutbound() method in this module, other processOutbound() implementations would have already converted it to the /group/blah path, so our processOutbound() method will work as expected.

This should undergo heavy testing before it is merged, and probably also deserves unit tests

This will work for any output including json, etc. The `link_alter()` method was only being applied to html output. As far as I can tell with my testing (which might be lacking) this appears to still work in all the same cases that `link_alter()` was implementing. By the time a node/x reaches the `processOutbound()` method in this module, other `processOutbound()` implementations would have already converted it to the /group/blah path, so our `processOutbound()` method will work as expected.

This should undergo heavy testing before it is merged, and probably also deserves unit tests
@ericras

ericras commented Jun 29, 2017

Copy link
Copy Markdown
Member

Editing a node on a subdomain gives the following when saved

Redirects to external URLs are not allowed by default, use \Drupal\Core\Routing\TrustedRedirectResponse for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants