Closed (fixed)
Project:
Pathauto
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
9 Nov 2011 at 16:03 UTC
Updated:
15 Feb 2015 at 19:34 UTC
Jump to comment: Most recent
Pathaouto is a great module, and most users like use it by generating the url form the node title. This is good enough , but the problem arrises when you change the title in which case you loose all backlinks to this page which includes all the trafic as well.
Ideally pathouto should allow you to set your url path and add strings to the existing url set by the user.
For exmaple:
I have an article with url: "/how-build-car" and I would like to be "/articles/how-build-car"
OR
News with url: "/upcoming-price-expectations" changed to "/2011/11//upcoming-price-expectations"
Comments
Comment #1
dave reidThis is why you should have the http://drupal.org/project/redirect module installed and enabled as it will automatically create redirects whenever an URL alias is changed.
Comment #2
vipconsult commentedIs it not better to avoid the problem than fixing it after it happens.
It would be very useful to have the option to set your own urls and leave auto path to add strings to rhe url you have set.
Path auto is a great module, but making sure you keep your urls constant is even more important. This improves your SEO and reduces the bounce rate of your website.
The redirect module is a great suggestion, but I think avoiding the problem of changed url is more elegant solution.
Do you know if there is any function that can be used in the template.php file that can add strings based on the content type. If this exists than maybe it is just better to post it here for anyone with my problem and there is no need to add this to the pathauto module.
Comment #3
vipconsult commentedAnyone at least with a suggestion?
Comment #4
vipconsult commented.
Comment #5
dave reidYou can set the patterns to whatever you want. The node title doesn't always need to be the first and only part of the URL alias. You can set your Article node pattern to 'articles/[node:title]' which would cover your use case above.