Closed (fixed)
Project:
Profile2 Registration Path
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
25 Mar 2013 at 10:19 UTC
Updated:
14 Aug 2013 at 23:41 UTC
Jump to comment: Most recent file
Comments
Comment #1
scuba_flyIf I'm correct this could be fixed by changing
line 463 - 467 of profile2_regpath.module :
To also let it check the url aliases table and search for
'/register'As I think it now does not check the url alias pad because it doesn't contain 'register'
edit: no that's not working, because the $path that is checked ( the alias ) is non existing in the regpath module.
So we need to get the alias path(s) and if one of them is used and then check the 'original' path.
Or: don't check the $url['path'] but the internal path if that's possible.
Comment #2
scuba_flyThink this will fix it. I'll create a patch in my next post.
Comment #3
scuba_flyCreated a patch against the dev version but I think the beta3 version is the same at the moment so it should work for that as well.
Comment #4
grasmash commentedThanks for point this out.
There's no need to create profile2_regpath_check_alias(). We can use drupal_lookup_path().
Pushed commit up to dev.