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].

227 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
2answers
399 views

Managing custom aliases on translated content

We have a Drupal 8 site with translated content, and using the Pathauto module. The issue we are running into is that when we un-check the "Generate automatic URL alias" on, say, the Chinese node, ...
5
votes
1answer
255 views

Make variables outside of node available to pathauto

I'm trying to port a website over to Drupal 7. The structure consists of locations which have an entity reference to a region which has an entity reference to a country: location<-region<-...
4
votes
1answer
648 views

Import URL Alias with Node

I'm using ne-impot and ne-export with drush for importing and exporting nodes. When exporting, as part of the uuid module, the URL alias is included with the export. However, when importing a node, ...
3
votes
1answer
73 views

Single path for multiple menus

I need to list nodes both in the main site navigation and within a section side navigation. Is it possible to target a specific menu for the Pathauto module to reference? This is an example of the ...
3
votes
1answer
612 views

How to use url alias in views for taxonomy terms?

On a Drupal 7 site with pathauto installed I'm using a view to show all taxonomy terms of a given node. The terms are linked to the term's page. The problem is, that the path of those terms does not ...
3
votes
0answers
736 views

How do I get the current node's parents (using PathAuto and Custom Tokens)?

A url for my site looks something like this: www.mysite.com/best-sellers/mistery/novels/this-is-a-book-title I want to remove "best-sellers" from that chain. I'm using PathAuto to generate my paths. ...
3
votes
2answers
394 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 ...
3
votes
0answers
152 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 ...
2
votes
1answer
276 views

How can I create an alias to point to an uploaded file?

Users uploading a file within content create a name like my_site.com/sites/default/files/import/CrazyLongNamefile.pdf They would like to alias it for referencing in other media (print) like my_site....
2
votes
0answers
57 views

Why would routes lose their aliases?

I have experienced this twice now on a Drupal 8 site. Pathauto is at its current version and Drupal is 8.2.6. What is happening is sometimes nodes 'lose' their aliases and revert back to being node/...
2
votes
1answer
94 views

How to change taxonomy term path for table and grid view

I am using taxonomy term module. I have categories vocabulary and in term so many categories and I have created the view using taxonomy term. With two page first is in table format and another is ...
2
votes
2answers
209 views

How to add a term ALIAS(!) to content URL pattern?

I have latest Panopoly distribution installed (with Drupal 7). What I need: my content items of a certain content type to have the f-g URL: "vocab term URL alias"/"Node-title" (first part of the ...
2
votes
0answers
115 views

Pathauto does not Transliterate when creating a node programatically (works when manually creating)

Drupal 7 Here is my code: <?php $languages = language_list(); // get all languages $preferedLang = "sv"; global $language; $language = $languages[$preferedLang]; $node = new stdClass(); // ...
2
votes
0answers
66 views

Advice for Image Management with New Site

I am looking for the best image management options for a new Drupal site. The original site has several thousand images, and a dynamic site is expected to explode that number to tens of thousands. I'...
2
votes
1answer
498 views

Ignore parts of the url or dynamically rewrite/alias the url

I am having a problem and have been wrecking my brain over it... I feel I might ohh how did I not think of that moment once I find the solution... Basically, what I need to do is: For any url ...
2
votes
2answers
71 views

How to display a block for some paths but not if they match some other path also?

Let's say I have nodes with the following paths: /chapters/university-of-florida/classrooms/class1 /chapters/university-of-chicago/classrooms/class2 /chapters/ucla/classrooms/cla I'd like to display ...
2
votes
0answers
94 views

subpath url alias does not seem to fire 404

I'm using subpath_alias, so /node/4/video alias is available too. But now, and I'm not sure subpath_alias is involved, /node/4/foo does not fire 404 and instead it shows the page as if it was /node/4. ...
2
votes
1answer
107 views

Failed validation redirects to normal path

I'm using the sub-pathauto module. I can edit node 1 of type list from the path list/1/edit. However, when validation fails I'm redirected back to node/1/edit (the normal path). Is this a known ...
2
votes
0answers
130 views

Change url of nodes in the past - Pathauto; Date module

I have a content type that includes the date module as a field type. Some of these nodes have the date set in the past and some in the future. I have been able to have only the nodes that have the ...
2
votes
1answer
368 views

Language switcher does not display the correct link to the default language path

I maintain a bilingual English/French website and the Language Switcher block is available on every page to allow the user to switch language. It works except on one particular taxonomy term page and ...
2
votes
1answer
290 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 ...
2
votes
1answer
62 views

Duplicated content on homepage

I've found that my site is showing duplicated content, I think it was when I installed Pathauto. The nodes are not duplicated though but seems to be multiple aliases. I've since tried using Global ...
2
votes
0answers
227 views

Two pattern aliases for a node type

I am using panels with a Node template to override the view of a content-type Employee. At the moment I am using pathauto to give a clean url of /Employee/[Employee-Name]. I'd like to use the panels ...
2
votes
2answers
285 views

Strict case in content URL alias

(Pathauto: Leave case the same as source token values) When I create a node with "Nullam vehicula pharetra" as title, the Pathauto module will create /content/Nullam-vehicula-pharetra as URL alias. ...
2
votes
0answers
255 views

Taxonomy term view page for terms with same name but with different term id?

I have several taxonomy terms that have the same name but different term id in a same hierarchical taxonomy vocabularies. I would like to display them in the same term view page. Example: -line-1 ...
2
votes
0answers
240 views

How can I display parent and child terms from a CCK Taxonomy field in Pathauto?

How can I have two (or more) different taxonomy vocabularies appear in my Pathauto settings at the same time? For example, if I want to use the 'location' vocabulary and the 'accommodation type' ...
2
votes
1answer
784 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
0answers
24 views

How do I set the path alias for nodes imported via RSS feed?

In Drupal 8, I have created nodes of article type using the Feeds module, using a RSS feed as source. How can I create path aliases for each of the imported nodes? I have tried to map source:'item ...
1
vote
0answers
18 views

How to add an alias filter to the media view?

I have a path alias for my media content provided by pathauto. The media view at 'admin/content/media' shows all the content. I am able to add filter for the media entity name, type, language and ...
1
vote
1answer
49 views

what happen if i have the same route as path alias?

What if I have the following route in a custom module and a path alias that is equal to the route path? mymodule.contact: path: /contact defaults: _controller: Drupal\mymodule\Controller\...
1
vote
0answers
36 views

behavior of path on unpublished/draft nodes

We have a Drupal 8 site with a press releases page. Currently the press releases page is provided by a view with a page display. The path in the page display is set to /press-releases. I've been ...
1
vote
0answers
126 views

Pathauto bulk update for taxonomy terms with unchecked “Generate automatic URL alias”

I have the same issue addressed for D7 here: Bulk Generating URL aliases for taxonomy terms doesn't do anything or here: Bulk update for unchecked "Generate automatic URL alias" And I'm ...
1
vote
1answer
967 views

How to create URL alias for node edit page

Pathauto can create URL alias for node view page, for example, URL from node/nid to project/nid (project is a name of content type), but the link to the edit page is not /project/nid/edit, but /node/...
1
vote
0answers
162 views

How do I set a url query parameter node/{node}/edit for a specific content type?

I'm trying to add a taxonomy term from the node in question as a url parameter, but am struggling to figure out how to do it without just going through the site and modifying all of the links that ...
1
vote
1answer
70 views

Multilingual pages links showing node instead of URL alias

My web has 2 languages, English and Malay. The language selection is by session of ?lang=en or ?lang=ms. English is the default language and it is working fine. All internal links are using the ...
1
vote
1answer
660 views

Redirect to 404 page, if URL alias does not exist

I am developing multilingual site in Drupal 8. I added content in Turkish language and did not create any translation for that node. Suppose node ID is 123, so system URL is http://example.com/tr/...
1
vote
0answers
72 views

Token, Filefield_Path, Path Auto and Image

I'm trying to put the Images (Image 1.jpg) for a content type (Critter\Fluffy) into a folder such as thus: files/Critter/fluffy/Image1.jpg Yet, no matter which set of tokens, it doesn't take the ...
1
vote
0answers
61 views

How to show a node view after clearing cache?

I'm running into an odd situation with views and pathauto not showing a node. Here is what is happening: I have created a content type called "Āsana". In it, there are several fields and paragraphs. ...
1
vote
3answers
689 views

Show 404 on page for node path url instead of redirecting to it's alias

I'm currently using the Redirect module in Drupal 8 along with Pathauto to create aliases on all url's. So for example /node/23 would be /article/some-text-here. When a user types in /node/23 in the ...
1
vote
0answers
22 views

Pathauto URL allowing unauthorised user to view

I have a content type that only authorised users are able to view i.e. mysite.net/node/66 (Access denied message for non authorised users) but when I view the same content using an alias of node/66 i....
1
vote
2answers
301 views

Drupal custom page with wildcards in url not working

I have created a custom page at admin/structure/pages and have set the path to be course-details/%id/%name My intention is that there will be a custom block appearing on this page and the id and ...
1
vote
1answer
188 views

Path is not available in Views filter criteria

I am creating a views with for node having fields Title,Author,Created,Path(page url). Now how can I add exposed filter for path(page url) so that user can find the specific page content in list. ...
1
vote
0answers
191 views

How Does Pathauto for Drupal 8.x Determine Generate URL Status?

I would like to turn off the "Generate Automatic URL Alias" for all existing content in my Drupal 8 instance. How do I do that? According to this thread D7 used a table: pathauto_state. From what I ...
1
vote
0answers
35 views

figuring out menu token path for file field

I'm trying to use menu token and file (field) path to get a path to display a node's PDF field from a menu link. I tried with the tokens: [node:field_pdf]/[file:url] with and without relative path ...
1
vote
0answers
41 views

pathauto with drupal 8 and generated characters

I am using pathauto with drupal 8 but i want to change the way it translates-generates some characters from greek to english. For example the greek character Η is translated as "e" . How can it be ...
1
vote
0answers
1k views

Pathauto aliases won't generate for custom entity types

I have a custom content entity type, mymodule, which currently generates paths like /mymodule/{entity_ID}/ on creation. My entity has a title field defined programmatically in my baseFieldDefinitions(...
1
vote
1answer
631 views

Redirect taxonomy term page links to a View page's exposed filter

I'm trying to make every taxonomy term page link direct to a pattern like this: /viewpage?[term:vocabulary][]=[[term:tid]] So, for example instead of material/bronze where bronze has term id 7, ...
1
vote
1answer
565 views

Creating multiple URL aliases for the same node with their own context

I want to solve the following problem with Drupal 7 solely using existing modules and without any extra code. I have a contenttype called 'News' I create a news item and assign a taxonomy term called ...
1
vote
1answer
67 views

url() not providing links to correct language alias using i18n in D7

We have a site that features two languages, EN (primary/default) and JA. On one content page, we link to another node using it's nid: url('node/123'). In EN, this returns the alias and not the node ...
1
vote
0answers
38 views

Views overwrite node - URL

I have node URL like: http://url.com/program/category/app/ I would like to create view with path: http://url.com/program/category/app/alternatives Is this possible? When I use in Views. I tried "/...

1
2 3 4 5