Reviewed & tested by the community
Project:
Persistent URL
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
17 Aug 2012 at 02:10 UTC
Updated:
2 Apr 2018 at 15:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
awolfey commentedPatch attached. The patch merges PURL options in rather than replacing all options.
Comment #2
awolfey commentedDon't overwrite the redirect options array in any case. Apply on top of first patch.
Comment #3
socialnicheguru commentedhad to amend patch so that it applies from within purl directory. applied fine then
Comment #4
baisongComment #5
jeffschulerAre these changes successfully fixing this issue for you folks?
I'm still seeing the URL prefix being removed from the URL upon save, in Redirect's call to drupal_get_normal_path().
Comment #6
baisong@jeffschuler, yes, the patch in #4 above is currently included in the latest OpenScholar profile release 7.x-3.10, deployed on OpenScholar @ Harvard, where it's resolved the issue.
Comment #7
jeffschuler@baisong: Thanks.
The prefix is still being stripped in our case, though.
purl 7.x-1.0-beta1+11-dev
redirect 7.x-1.0-rc1+6-dev
(Using PURL with OG group-based spaces.)
spaces 7.x-3.0-alpha1+10-dev
og 7.x-2.2
When I add a redirect where the From begins with an existing PURL prefix, regardless of whether I set the Modifier, the prefix is stripped from the string that is saved.
I tried applying the other 3 PURL patches that OpenScholar is using (in the drush makefile you linked) but still no luck.
Comment #8
jeffschulerI was totally misinterpreting this issue, sorry.
I understand now that this deals with query strings (like "?q=...") at the end of the redirect destination URL.
I'm still trying to figure out how to get PURL to not strip the prefix from the From string, but I'll open a new issue if necessary.
Comment #9
rohnjeynolds commentedThe fix #4 is the right solution, however we needed an additional check on the presence of redirect options in the second half of the conditional. This patch adds that check.
Comment #10
mmi.cse commentedPatch#4 ( https://www.drupal.org/files/issues/purl-integrate_redirect_keep_options... ) worked for me