Needs work
Project:
Group Purl
Version:
8.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Mar 2019 at 20:30 UTC
Updated:
16 Jan 2022 at 00:46 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
freelockHi,
The way we are using it, we configure the "Group" path to use the path -- e.g. localhost/test01 -- and this does not activate the group context (because otherwise you end up at localhost/test01/test01 ). However, if you add anything to that path -- e.g. localhost/test01/node/234 -- the path internally rewrites to /node/234 and activates the group context, which may then be used in Views, block contexts, etc.
To configure a "prefix" path instead of a "subdomain" path, using the Purl module patched to match my github branch ( https://github.com/freelock/purl-d8 ), under Configuration -> Search and metadata -> Persistant URLs, add a PURL provider of type "Group Purl Provider" and method plugin of "Group Prefix".
Does that help?
Comment #3
MPetrovic commentedYes, I understand how Purl works. And we have our Purl provider set up the same way. We're not configured to use subdomains in any way but the redirect from path prefix to subdomain is happening anyway.
Comment #4
MPetrovic commentedA patch to get started.
The whole class really needs Purl to step and allow generating urls for objects with an arbitrary purl context.
Comment #5
TravisJohnston commentedWe are having the same problem. I tried your patch. While it did stop the pages from redirecting to a subdomain that doesn't exist, it also remove the prefix. So the pages are no longer at /group/ID/node/ID - there just at /node/ID. So it removed the purpose of the module.
Comment #6
u_tiwari commentedUpdated patch, re-rolled for latest dev version
Comment #7
freelockHi,
Thank you for your contribution! I just tested on an active project using group_purl, and it's breaking when visiting a node that is part of multiple groups -- it's getting into a redirect loop. Removing the patch fixed the issue, so this still needs work.
Cheers,
John
Comment #8
freelockI just updated the purl-d8 project on my Github, incorporating a bunch of commits from OpenScholar. I added one fix to allow visiting the group entity and entityform, and put on a new 2.0.x branch, and this is working fine for me.
Does updating Purl to 2.0.x, and updating group_purl to 2.0.x work for you?
Comment #9
rbrandon commentedThanks, the 2.0 branch is going to help is get back in-line with purl which is great, to confirm is the commit you added https://github.com/freelock/purl-d8/commit/e6cb7030af1dfd86611949de14be8... ?
I will test with our code asap.
Comment #10
freelock@rbrandon that looks like the only commit I created -- the rest of the commits on this branch are pulled from other forks...