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

231 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
8 votes
2 answers
737 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, ...
aburke626's user avatar
  • 371
5 votes
1 answer
269 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<-...
Chris Leather's user avatar
4 votes
1 answer
715 views

Import a node with its path alias

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, ...
lazybum416's user avatar
4 votes
1 answer
930 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 ...
user5950's user avatar
  • 2,018
3 votes
1 answer
104 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 ...
Jag's user avatar
  • 31
3 votes
0 answers
826 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. ...
dcp3450's user avatar
  • 211
3 votes
0 answers
157 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 ...
Nick's user avatar
  • 31
2 votes
0 answers
61 views

How can I provide language-aware URL patterns for Pathauto?

I am using this pattern in Drupal 9 Pathauto to generate URLs: [node:menu-link:parents:join-path]/[node:menu-link] This does however not seem to work when using translated content. The generated URL ...
Morten Najbjerg's user avatar
2 votes
0 answers
60 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/...
Kevin's user avatar
  • 27.7k
2 votes
1 answer
1k 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 ...
rroose's user avatar
  • 360
2 votes
1 answer
100 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 ...
Ankit Gupta's user avatar
2 votes
2 answers
216 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 ...
Alex777's user avatar
  • 73
2 votes
0 answers
125 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(); // ...
Anders's user avatar
  • 21
2 votes
0 answers
69 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'...
John's user avatar
  • 53
2 votes
1 answer
623 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 ...
Boris Smirnov's user avatar
2 votes
2 answers
86 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 ...
Lukas Pleva's user avatar
2 votes
0 answers
98 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. ...
Thomas Parquier's user avatar
2 votes
1 answer
111 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 ...
dbj44's user avatar
  • 4,734
2 votes
0 answers
147 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 ...
kabatwa's user avatar
  • 21
2 votes
1 answer
376 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 ...
znat's user avatar
  • 1,047
2 votes
1 answer
309 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 ...
luaa's user avatar
  • 21
2 votes
1 answer
66 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 ...
ankles's user avatar
  • 361
2 votes
0 answers
229 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 ...
eli's user avatar
  • 123
2 votes
2 answers
507 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. ...
jibotak's user avatar
  • 135
2 votes
0 answers
256 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 ...
chinita7's user avatar
  • 1,021
2 votes
0 answers
245 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' ...
James's user avatar
  • 745
2 votes
1 answer
974 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 ...
Kenny Wyland's user avatar
  • 3,058
1 vote
0 answers
39 views

How to find PathAuto state?

I am trying to put together a list of content on the site that has the PathAuto setting still checked so it will update when the title of the page is changed. Can't seem to find where this would be ...
ThankYouNeco's user avatar
1 vote
0 answers
24 views

Why is my translated content loaded on a 'raw' node address even when there is an alias given? (Multilingual Site)

I have two languages (English and Spanish) in my Drupal site. The default language (English) content has already been created and now I need to translate the content (articles/pages/blocks) into ...
techenzie's user avatar
1 vote
0 answers
28 views

Generate same Path aliases for multi languages

I have a content type Products. A pattern is defined via the Pathauto module for product CT. but my issue is that when I translate an entry/node it generates a translated path alias for Urdu in Roman-...
Shakil Ahmad's user avatar
1 vote
0 answers
91 views

Why doesn't breadcrumb work for taxonomy terms?

I have created url patterns for the taxonomy terms in the "Article category" vacabulary. I want the breadcrumb trail to look like this: "Accueil"> "Blog"> "...
gerff's user avatar
  • 23
1 vote
0 answers
145 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 ...
Sarvjeet Singh's user avatar
1 vote
0 answers
30 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 ...
awm's user avatar
  • 2,429
1 vote
2 answers
702 views

Where in the MySQL database schema is the URL alias for a group relation?

I am building a report outside of Drupal that pulls data from a Drupal 8 database. The report shows titles of different nodes and I want to link those titles to the web page for that content. This ...
Eric Barr's user avatar
  • 111
1 vote
1 answer
86 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\...
Hmad's user avatar
  • 21
1 vote
0 answers
95 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 ...
user1359's user avatar
  • 3,909
1 vote
1 answer
230 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 ...
MXT's user avatar
  • 552
1 vote
0 answers
220 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 ...
Shawn Matthews's user avatar
1 vote
1 answer
108 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 ...
David Yap's user avatar
1 vote
2 answers
1k views

Redirect to 404 page, if the path alias doesn't exist

I am developing a multilingual site in Drupal 8. I added content in Turkish and I didn't create any translation for that node. I managed to redirect user to the path alias. For example, when users ...
FAB's user avatar
  • 185
1 vote
0 answers
79 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 ...
WernerCD's user avatar
  • 784
1 vote
0 answers
63 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. ...
mlanning's user avatar
  • 441
1 vote
0 answers
32 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....
hobbsie's user avatar
  • 53
1 vote
2 answers
357 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 ...
Richard Luckhurst's user avatar
1 vote
1 answer
265 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. ...
Rajesh Vishwakarma's user avatar
1 vote
0 answers
305 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 ...
Andrew's user avatar
  • 21
1 vote
0 answers
38 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 ...
toy robot's user avatar
1 vote
0 answers
43 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 ...
mlsandreas's user avatar
1 vote
0 answers
2k 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(...
saramm1's user avatar
  • 727
1 vote
1 answer
1k 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, ...
user56reinstatemonica8's user avatar

1
2 3 4 5