Email
Share
Oct 22 2007
Last update:

Pathauto showing special characters in URL

Filed under: Content Management Systems » Drupal,

Special characters showing up in your Drupal URL's?

Are you saving a page, for example "What's New" and having it show up as example.com/what039s-new?  This is a common problem with Drupal's pathauto module that is caused by the processing of special characters via Drupal's token module (newer pathauto releases require token module to work). 

 

Solution to remove special characters from URL

As of the time of this writing, the solution to get your URL's to display correctly again involves:

  • Downloading, installing, and enabling the latest pathauto and token modules (be sure to run update.php after updating)
  • In pathauto settings, replace "title" with "title-raw," "catpath" with "catpath-raw," and so forth.

Older versions of pathauto were fixed with a patch.  The above solution should be in place while we wait for a newer pathauto/ token release that resolves this issue.

 

 
Your rating: None Average: 1.6 (13 votes)

Your rating: None Average: 1.6 (13 votes)

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Thanks

Thanks for this post, 

I think this problem happens in drupal 6.0 only. I have never seen it in drupal 7.0.

Drupal Developer | Drupal Programmer
Drupal Website Development | Drupal Expert

thanks

Nevertheless, props to the creators, as I'd be up *** creek without this module.

Pathauto with Drupal 6.x

It looks like the special character issue in Pathauto is fixed in Drupal 6.x, correct me if I'm wrong. This servers as a reminder to keep modules updated in Drupal. Actually, I used to follow the slogan - if it ain't broke, don't fix it. I still do, but if something doesn't work, I upgrade.

Encode and decode the url

Why can't browsers just come up with a way to adjust the URL for the user?

Browser URL

Browsers merely display the URL. The format and coding of the URL is determined by the hosting server. Since each user has their own unique website browser, they are in effect only looking through a "window" at the URL.

Great!

I've been finding ways to make my domain as search-able as possible. Been reading a number of essays and other types of information on the web and its great that I found this site with an entry that can help me well. Thanks again!

Tuna

Thanks My Friend...

Pathauto raw paths?

Drupal's pathauto module is great and has saved me a lot of work as far as having to manually generate SEF (Search Engine Friendly) URL's, but what is up with their implementation? Why are we forced to use raw output (ie. adding -raw to the end of a path on the pathauto configuration page), and if we don't we get an error?

Nevertheless, props to the creators, as I'd be up *** creek without this module.

Thanks!

I guess I need to learn to update Drupal more regularly Eye-wink Thanks for this - the screwed up pathauto paths were driving me bananas!!

The content of this field is kept private and will not be shown publicly.
Type the characters you see in this picture. (verify using audio)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.