Questions tagged [path-aliases]

Use it for questions about path aliases, a way of creating pretty human readable URLs to replace system URLs like node/[nid].

Filter by
Sorted by
Tagged with
0
votes
1answer
881 views

Drupal 7 aliases for a certain content type producing 404

I've got a custom content type ("charity listing"). Nodes in this content type should have the automatic alias charities/view/[name-of-charity]. They do indeed have this alias, when I try to edit a ...
3
votes
1answer
338 views

path_set_alias() generates the wrong alias, and creates a 301 redirect to the desired alias's path

I'm creating a webform when organic groups are created and I'm trying to set an alias for it with hook_nodeapi(). It successfully creates the alias when the insert operation for the group is called ...
1
vote
1answer
210 views

is using non English words for paths recommended?

I'm working on a Drupal site which has a non-english language.I want to change the paths to something better than node/[nid].Nodes also have a non-english title and I want to set the path to content/[...
2
votes
2answers
2k views

Drupal multiple node url aliases

Is it possible to take a field from my node and create a url alias from the content of that field? Say I have a node type article. This gets its normal url via pathauto, but I also wish to be able to ...
4
votes
1answer
234 views

OG homepage URL

My current/default group front page is groupname/node/nid But this is quite ugly, and when clicking on the site title the user is redirected to /group which does not display the group node but only ...
2
votes
4answers
6k views

In Drupal 7 how do I add an anchor tag to a path alias menu link

I created a node in drupal 7 and given it a url path alias of 'testing'. When I try to create a menu item that links to the path alias with an anchor, it throws an error If I do node/1#this it ...
5
votes
2answers
356 views

Build StackExchange-style url's

I'm looking for a way to build what I call 'StackExchange style' url's with Drupal 7. In my definition, that means: A node has a path alias containing both a unique identifier and the node title. For ...
2
votes
1answer
623 views

Setting up catalog taxonomy

I'm fighting with pathauto patterns for a particular content type. The content type is bound to a taxonomy (a product catalog). I thought that the taxonomy tree should only hold container items (...
4
votes
1answer
5k views

Path (URL) to call custom module function

I am developing a custom module and I need an URL that would trigger an action when called. The purpose is for an external server to call this address passing some variables through $_REQUEST['...
1
vote
1answer
752 views

Create different URL alias based on CCK field

So I have a typical blog entry content type and I've added a CCK checkbox for some extra functionality. I'm using the pathauto module to automatically set the URL alias for the blog entry content type....
5
votes
3answers
4k views

Use entity_uri or drupal_path_alias()?

What are the difference? And when should you use which one? entity_uri() is rather new to me (Drupal 7) and I see it little used. But it appears to be a lot cleaner and better performing then ...
1
vote
1answer
391 views

Pathauto module doesn't translate urls generated by l(), url() to aliases, should it?

Pathauto readme says: If you use the "system path" (i.e. node/10) for menu items and settings like that, Drupal will replace it with the url_alias. But in my case links stay the same: echo ...
3
votes
3answers
349 views

Pathauto and dynamic branch depth

I downloaded the Pathauto module to have the taxonomy aliases generated dynamically. The problem is that the pattern apparently expects a fixed depth, while my taxonomy is not that stiff - some items ...
0
votes
1answer
510 views

Custom “account” pages

I am creating custom account management pages in drupal with quite a few criteria. The first being that there is a page at /account which contains two separate forms: 1) To enter a new email address ...
1
vote
1answer
724 views

Automatic alias overriding manual alias on each edit

Does anyone have an issue with Automatic alias, where the setting keeps turning back to auto on each edit of a node? What we would like to achieve is a) some node paths should be generated ...
2
votes
1answer
355 views

Preserve Current Paths before rolling out new Pathauto Alias

I'm just about to roll out a new Pathauto Alias to include a new taxonomy term, which will modify about 1000 nodes. Is there a way to preserve the current path aliases I have now, and then bulk update ...
4
votes
2answers
161 views

Prevent “→” from being written in URL alias

When the post title contains "→," it will be written in the URL alias. When using Boost, an URL containing "→" will not be well cached; visitors will see the uncached node. How do I prevent the "→" ...
4
votes
3answers
5k views

Username as a path to Profile page

I am trying to set up username as a main path to the user profiles in Drupal 7; for example, I would like to have mypage.com/someusername as path alias for the profile of the user that uses "...
6
votes
2answers
872 views

Node alias with taxonomy term

I have the content type 'machine' that uses two vocabularies (producer, category). I would like to create node alias like [language]/machines/[producer-name]/[title-raw]; [producer-name] is from the ...
1
vote
2answers
805 views

Exposed Views 2 filter for path alias

I am surprised that I am not able to find an existing Views 2 filter for aliases (paths). Seems to be such a basic property to filter results by. I know Views can filter by argument but I need it as ...
2
votes
1answer
412 views

Having username as a path - Profiles 2 and Pathauto

I have a problem with integrating the Pathauto and Profiles modules. Basically, I would like to have the username as URL, e.g. example.com/username. This should link to the profile page (not the ...
1
vote
2answers
2k views

Why no pid in node object?

I am setting an alias programatically, using path_set_alias() in Drupal6. Looking at the code of path_set_alias in path.module, I see that if I pass the pid (path id), the old alias(s) for that node ...
0
votes
2answers
740 views

How to update path alias using MySQL command line

Many words have been renamed in the node using the below code: update node set title = replace(title,'Apple','Orange') update node_revisions set title = replace(title,'Apple','Orange'); But now I ...
0
votes
2answers
3k views

Pathauto taxonomy term alias for content paths

I am trying to make my nodes URL aliases use taxonomy term aliases through Pathauto, but I cant seem to figure it out if there is an alternative. For example, I am trying to use questions/[term:url:...
3
votes
1answer
4k views

Pathauto taxonomy terms in content paths

I'm using pathauto and want to set it up so that when a new page is created (which has the taxonomy field) it will add the taxonomy terms into the url. For example, if I have the following vocabulary: ...
1
vote
1answer
5k views

D7 views 3, display content based on path

I have a block that displays results of the nodes i have created but i have those nodes on a specific path, anyway to put this short im trying to make a block from views that displays content based on ...
1
vote
2answers
568 views

Is it possible to create a menu item and leverage path aliases?

I am trying to create a menu item that loads a view mode that calls the callback function with the path alias. $items['node/%/%'] = array( 'page callback' => '_node_view_load', 'page arguments'...
1
vote
1answer
556 views

Pathauto, user profile alias from content profile fields

I created the alias bartender/profili/[content-profile-profile-profile_name-raw]-[content-profile-profile-profile_surname-raw] for users. I want to have '-' between name and surname but it always ...
4
votes
3answers
3k views

Aliases for user profile URLs

For example, the URL http://example.com/user/20/edit/cocktail?destination=user%2F20 leads to a page with the form to add content. I want to create an alias like bartender/add/cocktail, or (if ...
3
votes
2answers
1k views

taxonomy-term at the automatic creation of url alias of a content path

In Drupal 7, how i can use the taxonomy-term at the automatic creation of url alias of a content path?
2
votes
1answer
572 views

Getting Views to use custom aliases

I have the following custom URL aliases that point to specific Views paths: /california/los-angeles maps to /locations/los-angeles /username/listing/post maps to /item/post Views still uses the ...
14
votes
6answers
13k views

How do I use URL aliases in menus?

I am kicking the tires on Drupal 7 by spinning up a test site. I chose the Danland theme and created various pages with URL Aliases for each, but when I create the Menu link for each, I can only ...
1
vote
1answer
863 views

Keep the URL alias for a node when using href

I am using Drupal 6 and I have set aliases for my nodes under Administer > Site building > URL aliases. This works properly; for example, I have alias = about/faq, node = node/33, and when I click on ...
2
votes
2answers
2k views

Altering a URL alias without using a module

Is there a way to alter a URL alias without using a module? Somebody told me to write a record into database table, but I don't know how to do it.
3
votes
2answers
2k views

How to support legacy url alias' and/or support multiple url alias' (Conditional Pathauto?)

I am migrating a site from wordpress and need to preserve my url structure whilst supporting native pathauto urls in the future (for new content) Overall Drupal's clean url process is almost ...
2
votes
2answers
751 views

Path associated to Views

I used Pathauto to create URLs for my nodes like gallery/[node:title]. I created a view with an argument, and the path is gallery/% (% is the node title), but when I point my browser to that URL, I ...
11
votes
2answers
8k views

How to set URL alias automatically for a content type WITHOUT using Pathauto? Which hook to implement?

Pathauto can do the job easily for all content types, but in my case I only have one content type URL that needs to be customized, and I would prefer to not install Pathauto and Token. Can anyone ...