Questions about path aliases, a way of creating pretty human readable URLs to replace system urls like node/[nid].

learn more… | top users | synonyms (1)

0
votes
1answer
32 views

Is there a bulk method of doing 301 redirects from old nodes to new node pages?

I am updating an old drupal 7 site and many of the old nodes now have newer counter parts with new nodes. Since alot of my old nodes have already been spider-ed, I want to do a 301 redirect to the new ...
0
votes
1answer
30 views

Which mysql drupal 7 tables contain the URL Alias path data?

Im looking to manually change a node's URL path as my edit button throws me an error upon clicking it since this was due to orphaned data left over from some other uninstalled modules. Which tables ...
0
votes
1answer
25 views

'og:url' meta property displaying wrong path, messing up posting on external sites

I'm trying to post a link to a landing page on my Drupal site, like http://me.mysite.com/aboutme. When I post it to Facebook, the link that pops up is to http://me.mysite.com/node/xyz. node/xyz is an ...
1
vote
0answers
26 views

How to automatically generate multiple aliases for one node?

I'm using Drupal 7.22. I'm running four site versions in same Drupal installation. eg:- example.com/site1 example.com/site1 and its mobile versions: example.com/mobilesite1 ...
0
votes
2answers
26 views

Menu item path saved as node/nid instead of alias

An alias supplied to the [Path] attribute of a Menu Link is converted to node/nid when saved, (along with a nice message: "The menu system stores system paths only, but will use the URL alias for ...
0
votes
1answer
19 views

How to correct term alias?

I don’t know why in Drupal 6 some of my parent taxonomy terms have duplicate URLs. For example, I have http://example.com/carrers-0 instead of http://example.com/carrers. I am not finding any ...
0
votes
1answer
18 views

Views: URL Alias as a field

How do I get the URL alias of a node in views. Here is a previous question, Get a url alias as a field value? However, the Content: Link field outputs something along the lines of <a ...
3
votes
3answers
44 views

How to set one path alias as the canonical alias?

I use the Tags taxonomy on several of my content types. In order to assist with a site-wide filtering mechanism, I'd like to be able to create additional path aliases for each piece of content. For ...
0
votes
1answer
10 views

hook_path_update (and insert and delete) not getting called

I've added the following methods to my module, saved, and flushed all caches on my site. I have double checked that my module is enabled and working properly in all other respects. function ...
1
vote
0answers
18 views

Using pathauto to create multiple aliases, one for each term?

If I have a taxonomy tags so that I can tag a node with foo and bar and baz, is there any way to make the pathauto module create three aliases? If it would normally create content/my-new-node, is it ...
1
vote
2answers
37 views

D6 - Rule to simply redirect path to login

Currently I'm trying to add create a rule that simply redirects anyone from /node/add to /user/login. It's intended to be part of a larger rule, but I'm having No luck with this Steps of the rule are ...
0
votes
1answer
74 views

Pathauto URL alias not working (using nginx)

I'm having several problems with URL paths (Drupal 7). I think they are related with nginx configuration, because I'm experiencing this problems since I migrated the site from an apache server to an ...
0
votes
1answer
21 views

Keep URL the same after changing page title

I create alias for every pages on my site. For example, if a page is called "My Page", then the alias will be "/my-page". Is there a way to keep that URL the same even if I rename the page "My Page ...
1
vote
3answers
42 views

How can I get final URL of newly added node from hook_node_insert()?

I have installed pathauto and implemented hook_node_insert in my module, the problem is when I use entity_uri to get new node's URL I will get node/xxx instead of pathauto url alias. How can I get ...
0
votes
0answers
40 views

Can we update taxonomy terms in bulk?

I have lots of taxonomy terms in Drupal 6, and I want to update all the URL aliases in bulk. Is it possible or not? How can I do it?
0
votes
1answer
38 views

Menu doesn't link to alias URL

I'm having difficulty on a fresh Drupal installation getting the menu to use an alias (let's say "foo") rather than "node/#" link. The alias works when I type it straight into my browser. When ...
1
vote
1answer
43 views

Custom Path Alias with Initial Letter as Token

For various reasons, I need to change my custom path alias for a taxonomy type as follows... FROM: /composers/aardvark TO: composers/a/aardvark So I'm looking at either creating a custom token, or ...
0
votes
0answers
25 views

Drupal always creates its own URL aliases, even when I tell it not to

I don't know if this is a bug in Drupal, or if there's a configuration somewhere that is causing the problem, but when I create a new page or edit an existing page, Drupal (always? often? sometimes?) ...
1
vote
0answers
71 views

How to cache url aliases properly in Drupal 7

I have heard Drupal 7 caches url aliases per page. This is not useful if you are caching pages in Varnish for example. The D6 module Pathcache was effectively for this purpose however it does not have ...
2
votes
2answers
37 views

How to change all hyperlinks in the content

Hi i am new to the drupal and i got problem in my site in the hyperlinks. I have book copy module by which i have created one copy of the book. After creating the book i set aliases to content/newbook ...
0
votes
1answer
59 views

Create path alias for hook_menu URLS based on node information

I'm looking for guidance on how to dynamically create a path alias for dynamic paths that I create in a module using hook menu. For example, I have a module that defines a path such as ...
1
vote
2answers
63 views

drupal_match_path() for multiple wildcard patterns?

I want to add some CSS and JS to multiple matched wildcard URL patterns. According to Add javascript to multiple specific urls, I can use a wildcard using drupal_match_path() and that works well for ...
3
votes
1answer
58 views

Unable to set Drupal environmental variables using Drush alias

$aliases['opendoor_stage'] = array( 'uri' => 'stage.opendoor.com', 'root' => '/var/www/stage.opendoor.com', 'db-url' => 'mysql://someurl', 'path-aliases' => array( ...
2
votes
1answer
48 views

How to programmatically uncheck 'Generate automatic URL alias' option for all nodes

I've created some nodes programmatically and set the path alias. But when I then go into edit the node the 'Generate automatic URL alias' option is still checked, even though my alias is shown in the ...
0
votes
1answer
97 views

Context Filter with Path Alias in URL

Quick Summary: how do I pass a alias in a URL to a view's context filter, when that view is located somewhere in the site. I've read dozens of similar articles, but nothing that directly makes this ...
1
vote
0answers
62 views

Hierarchical taxonomy fileds' values as node path in Drupal 7

I have a vocabulary with 2 levels of terms. As my term names are usually rather long (e.g. "Institute of Computer Science and Information Technology") I added a field "short_name" to the vocabulary ...
0
votes
1answer
57 views

How to alias / rewrite path to theme?

The paths to css/js/images in a theme look like /sites/mysite.org/theme/* Is there a way to rewrite those paths to – let's say – /mytheme/* ?
0
votes
1answer
116 views

D7: Change Drupal “Link” field to store node url instead of alias for internal links

I am using the "Link" field in Drupal 7 to store links. Sometimes these links are internal and sometimes they are external. In the case of internal links, I would like to be able to store the system ...
2
votes
3answers
155 views

Rebuild all paths for a content type

I want to change all paths for a given content type. For example is would change all node of type "image" that are currently at /[some_token]/[nid] to /photo/[nid] I am using path auto and I ...
1
vote
1answer
316 views

How to get url alias of a link, when rewriting field output in Views

I have an image field in Views, for which I must use "Rewrite output" option. The output of the image field is this: <a href="/taxonomy/term/[tid]" title="Album &quot;[name]&quot;" ...
1
vote
1answer
42 views

Old site migration and keeping links (as aliases)

I'm migrating an older site into Drupal 7 and have had a lot of success so far. One item where I'm stumped is on links to user profiles. The older system would link to teachers via ...
0
votes
1answer
31 views

How to map a URL to an attachment

I'd like to have a simple and clean URL for a PDF file, such as http://www.examples/file1 that maps to an attachment in a Drupal node, rather than using something like ...
0
votes
0answers
44 views

Display view field on pages with specific path alias

i have a view block - that shows 3 last images of my content type sidebar image(block is displayed on every page). Content type has two fields - image and path - url path alias, for example ...
0
votes
1answer
33 views

Can I turn a list of Aliases into a menu structure?

So I'm elbow deep in a massive migration from a home grown CMS. So far I've been successful at using Feed Import to slurp in CSV exports of the old MySQL database. (The old database contained page ...
0
votes
1answer
52 views

Creating a menu structure based on Content Types Alias

I have imported in a bulk of content via a CSV Feed Importer (see Migrating content from older custom CMS). It worked splendidly. I was even able to take in each of the pages old URL and create an ...
1
vote
1answer
70 views

Should I rewrite my links into aliases?

Is it of any advantage, in addition to using Global Redirect, to rewrite html links from /node/nid to /article/this-is-the-title, even though in both cases traffic is directed to ...
0
votes
1answer
58 views

Menu structure and URL paths

I am using a Superfish 2 level navigation menu, and have 3 sub-items under an item. The url path for the second level item is NOT item/subitem but instead just subitem, if that makes sense. I've got ...
0
votes
1answer
30 views

Why is my alias “NULL” in a test?

I am using Drupal 7, I have Pathauto enabled, and my user has permissions to create new aliases. When I manually create a node, uncheck the checkbox for automatic alias generation, and enter a custom ...
0
votes
1answer
44 views

Creating custom node aliases inside a simpletest

I am attempting to write simpletests to replicate the steps to reproduce on this d.o issue. I need to create a test node with a custom alias, as if I had unchecked the "Generate automatic URL alias" ...
1
vote
0answers
34 views

How do I ensure active menu items are highlighted for Views with Better Exposed Filter arguments

I'm using Better Exposed Filters on a clothing site. There are various types of products listed using Better Exposed Filters (to choose between Mens/Womens/Kids). The Mens and Womens pages are ...
5
votes
2answers
129 views

How to deal with deleted posts: Returning 410 status and preventing path re-use

For my jobs site, I want to return 410 status for those jobs which expire or are removed permanently. How can I do it so that 410 instead of 404 is returned for say job related node types( they'll be ...
1
vote
1answer
130 views

Multiple aliases, context and menu items (Drupal 7)

I have a site with 2 sections of content, A and B. I have a node, 'Z' that needs to appear in each area. I also have a different menu for each area, e.g. Section 'A' link 1 link 2 link Z -> should ...
0
votes
1answer
62 views

Setting the behavior for Pathauto when a Duplicate exists?

I'm creating a Drupal 7 site which will consist of information about many different organizations across North America. The profiles will be submitted by the organizations themselves and it is very ...
1
vote
0answers
122 views

URL aliases and Entity Translation (menu name replacement pattern)

I am using entity translation (Field translation) for my nodes, and set the menu name on each 'page'. The menu itself is arrange to basically have a duplicate tree in the same menu each with a ...
0
votes
0answers
57 views

Views argument url use username instead of UID number

How to make link created in views with UID as argument show username istead of number ? Example: Instead of /5/images show /username5/images
1
vote
2answers
73 views

Views: Change path and redirect old to new path?

I would like to change the path for one of my Views. How do I redirect the old Views path to the new one including all the variables that may follow the old path?
0
votes
1answer
1k views

Path alias creates redirect loop or redirects to the front page

When I call our sit "www.example.com/contact-us" I'm getting the following error: Oops, looks like this request tried to create an infinite loop. We do not allow such things here. We are a ...
1
vote
0answers
57 views

How do I add a term reference name to the Pathauto pattern for a content type?

I'm trying to create a website with 2 sections, Home and Business. For this I have created a vocabulary called 'Page Type' and added those section names to it. I've added a term reference field to my ...
0
votes
0answers
32 views

Profile pages with pathauto and views

Ill try to describe best i can... Here is an example: I have node that is main content for each profile - band. Each user can create its own band and only 1 band (1 main url). Pathauto for bands are ...
0
votes
0answers
100 views

How can I get Views pages with taxonomy arguments display to fire after URL Alias (Path Auto)?

Right now I have a Views page that shows all results of the content type it filters by. If there is a taxonomy argument present (Contextual argument: Taxonomy ID: validate by Name to taxonomy ID) then ...

1 2 3 4