Closed (fixed)
Project:
Pathauto
Version:
6.x-1.6
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
30 Sep 2013 at 16:12 UTC
Updated:
27 Dec 2017 at 00:49 UTC
Jump to comment: Most recent
I have a problem with links created by pathauto
Links to groups in the form group/groupname, that used to work, no longer function. Instead of pointing to the group, they point to the homepage
the links typed using ?q function OK: ?q=group/groupname
the links typed using to /node/[nid] do work OK
I am using Drupal Commons.
Comments
Comment #1
francis55 commentedI checked out in phpmyadmin: in
url-aliastable, there is a row linking the group path to the corresponding node/nnnn:pid: 2182
src: node/1041
dst: group/proactive-bank
When I type
http://myDomain/node/1041, I get the group pagewhen I type
http://myDomain/group/proactive-bank, I get channeled to the home page instead of showing the group pageComment #2
francis55 commentedI have since tried the drush command suggested in https://drupal.org/node/236304:
drush php-eval '_pathauto_include() ; node_pathauto_bulkupdate()'
and also opened a node and and manually edited the Url path settings entry
and also went into the content page, filtered for groups and selected the option Update url alias.
I still have the same problem
Comment #3
francis55 commentedFinally solved after days of beating around the bush...
I still don't know the reason, but group/name paths always redirect to the home pag
Here's how I did it:
SELECT * FROM `url_alias` WHERE `dst` LIKE 'group/%'(to check the list of stuff to delete on next step)
Delete FROM `url_alias` WHERE `dst` LIKE 'group/%'(delete the faulty paths)
yoursite/admin/build/path/pathautoto prepare to rebuild the broken paths
paths with group didn't work replace them with something else
Select the option "Leave the existing alias functioning"
drush php-eval '_pathauto_include() ; node_pathauto_bulkupdate()'
until you get "Bulk generation of nodes completed, 0 aliases generated." . If there are too many items, increase the number of aliases to generate each time (50 by default)
Comment #4
gregglesGlad to hear you got this fixed. Thanks for sharing your solution!