So I'm new to Drupal code, once I learn more I'll start creating themes and modules. The issue I ran into is I'm using Pathauto and have Clean URLs enabled, the thing is I'm trying to find a way to make Drupal default links from Clean URLs to get replaced by the aliases I have created in Pathauto either through manual edit of pages or automatic.

An example, once I turned on Clean URLs, clicking on my profile link or my name I go to /user/ but what I want is /u/USERNAME. I want to be able to edit all of the links, not just that one. Hopefully there is a setting somewhere I missed that allows this.

Thanks

Comments

nevets’s picture

Clean URLs and pathauto (aliases) are different things.

The actual home url of a Drupal site is http://www.example.com/index.php, and the url of a path is http://www.example.com/index.php?q=somepath. Clear urls allow http://www.example.com/somepath to work,

There are some "magic" paths in Drupal, '/user' is one of those that and means different things if you are logged in or not. When logged in it takes you to your profile page (but does not change the path) which is what you are seeing. I do not know of away to change this behavior.

Mythotical’s picture

Ok thanks, I'll dig around more in the code and templates, maybe I'll come across something.