What's the deal with Deno? We talk with a major contributor to find out. Listen now.

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
2
votes
1answer
106 views

Pathauto alias produces inconsistent aliases

I have a content type with its own Pathauto pattern studios/[node:title]. What could be the reason that the alias of the node entitled "Studio A" is studios/studio, whereas for "Studio B" (for the ...
2
votes
4answers
3k views

Organic groups, group content types and pathauto

In pathauto module settings I have localhost/[node:group_group] for all group types. I have few group types: Ex Technology, Arts, Design etc and within each group type you can create as many ...
2
votes
1answer
2k views

Pathauto does not trigger on node_save when programatically creating nodes

I am programatically saving nodes. From my reading, it sounds as if Path auto is trigged to autmatically create a URL alias when node_save() is called. However, this is not happening. I later read ...
2
votes
2answers
2k views

Determine if node is new

I am inserting nodes from an external application into Drupal (7.x). I've taken care of the node_revision table and other tables needed by Drupal to see the node. However I have pathauto installed and ...
2
votes
3answers
3k views

How to create aliases for file paths?

In my content type there is a file field; when I upload files, it creates a file path like sites/default/files/uploaded_file.zip. Is there a way to change this path to something like dl.example.com/...
2
votes
2answers
753 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 ...
2
votes
1answer
53 views

How deal with taxonomy term parameter in multilingue site?

I have a custom controller, who take the tid parameter : /myroute/{tid} The tid is upcast with the taxonomy Term so in my controller method I have: public function index(TaxonomyTerm $tid) In this ...
2
votes
2answers
1k views

Migrate: Duplicate entries in url_alias after update migrations

I have term and node migrations from wprdpress to drupal 8 (with pathauto module enabled). I set the url alias in the migration templates like: process: path/alias: source_path path/pathauto: ...
2
votes
2answers
826 views

How can I create a view page that takes taxonomy machine name and has depth?

This question is a followup to How to load nodes that are associated with the child of a taxonomy term and refers to this answer in particular, but is standalone, so you need only visit those if you ...
2
votes
1answer
2k views

How to map url_alias table to node table?

I was trying to use some SQL to map the url_alias field to my node field on the url_alias.pid = node.nid field. However, it turns out that these are not apparently related, sometimes they are the same ...
2
votes
2answers
232 views

404 when using named placeholders for variable parts of Panels path

I'm creating a landing page using a custom content type in Drupal 7, I've set up the views and had everything working correctly, but then I decided to change something at the last minute and add named ...
2
votes
1answer
795 views

Single webform on multi-language site with different url aliases

I have multi-language site with webform. I want to use the same (single) webform for each language so I used Webform Localization module to translate the webform via string translation. Everything ...
2
votes
4answers
622 views

How to redirect by adding something after pathauto url?

I am trying to do a simple thing. Whenever an anonymous user views a content , I want to redirect the user to node's-url/#overlay=signup So, how do I modify the URL to use #overlay=signup at the ...
2
votes
1answer
279 views

Root term in Pathauto only works for child terms?

My taxonomy structure looks like this: Film - Short film - Special film Using Pathauto, I would like the url to always include the root term. So for nodes tagged with 'film' the path is: film/node-...
2
votes
1answer
2k views

Module to allow multiple paths for a single node?

Is there a module that would allow me to define multiple paths for a single node? (Not just one node; I need to do this for multiples.) For example, I need to be able to access http://www.example.com/...
2
votes
4answers
885 views

Is there a problem defining a View using a path alias? Or did I just miss something?

CONDENSED SUMMARY OF ISSUE: I have a view with a path of /taxonomy/term/%/something that responds to a URL alias of /spec/ID/ so entering /Spec/ID or /Spec/ID/Something displays what is in the View. ...
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.
2
votes
2answers
74 views

Delete any path alias by language

We are running Drupal 8.8.5. I can see duplicate aliases when I look at /admin/config/search/path. Unfortunately, there are many duplicate aliases on our website with 6000 URLs. The /node/1 node has ...
2
votes
1answer
89 views

How do I programmatically delete a node by internal url alias?

How do I programmatically delete a node with a specific internal url alias? Background: We are trying to delete this node so that it can be replaced during an update hook.
2
votes
1answer
233 views

Drupal 8 - Pathauto taxonomy terms in content paths

I currently have a pattern set up for my site's basic pages. It pulls in some generic fields associated with the content type, and no problems there. Got a new requirement to associate some data from ...
2
votes
1answer
900 views

How do I get the path alias without the language code?

Suppose I have an alias like http://www.example.com/en/the-new-webpage.html. I want to get the the-new-webpage.html part in hook_preprocess_html(). The language code might change into 'ja' or some ...
2
votes
2answers
282 views

Creating two aliases for the same node

I have a content type with a field allowing to select public or private. I am using the Pathauto module for generating path aliases using this field, using /[node:field_evt_diffusion]/[node:title] as ...
2
votes
1answer
406 views

Pathauto and forum paths

I can generate urls to forum topics fine, but pathauto appears to be stubbornly refusing to generate urls for Forums and containers no matter what patterns I try to use. I even tried to alias them in ...
2
votes
1answer
67 views

Drupal Page Process

Help me understand the best practice on how basic site building should work in Drupal 8. Say I have a section on a website that is all about teaching. I'm going to create a basic page content type ...
2
votes
1answer
882 views

Twig template suggestions for paths such as page--node--page-url

using D8, I'd like a twig template for a page I've created based off the path of the page and not node %. I look in my twig suggestions and all I see are: page--node--8.html.twig page--node--%.html....
2
votes
1answer
198 views

URL alias in page.tpl.php

I try to make link 'Mobile version' on site page site.com/page. This link leads to this page but on subdomain m.site.com/page. I use page.tpl.php. I try to write this. <a href="http://m.site.com/&...
2
votes
1answer
496 views

How can I get pathauto to generate language-inspecific rules?

I have created a new pattern for a specific content type, and did not select any language at the /admin/config/search/path/patterns/XYZ page so that it would apply to nodes in any language. What I ...
2
votes
1answer
579 views

Implementing an age check using InboundPathProcessorInterface

I'm trying to create an age checker for a Drupal 8 site. I've created a custom module which has a form where the user enters their DOB and my form submit saves a cookie so I know they have passed ...
2
votes
1answer
424 views

How to override a node using alias?

I have created node there path is "content/book/book-name-alias". Where I have override a node using view page "content/book/%" where contextual filter using "Node Id". When I have request a page ...
2
votes
2answers
109 views

How to get node IDs from drupal.org?

In Drupal, we can get argument values using arg() function. drupal.org uses path alias. For example https://www.drupal.org/project/elysia_cron is actually https://www.drupal.org/node/274365, the node ...
2
votes
2answers
2k views

drupal 7 template suggestions based on path alias

I am using this function on a D7 site to template based on url alias and everything works except when a page has a dash in it. For example mysite.com/test-page doesn't work. I tried page--test-page....
2
votes
2answers
5k views

How create Redirect pattern from old to new URLs?

D7: I'm going to update an articles path pattern (/articles/[node:uid] → /post/[new tokens]) but I need redirect users from old path to new one using tokens. And I don't know how to do that. I tried ...
2
votes
1answer
3k views

Using Pathauto URL alias in link fields

In a view, I have several fields that I would like to link to the original content. The title field's default behaviour is like this, but I want to have the trimmed body and the image fields to behave ...
2
votes
1answer
1k views

Manually changing URL alias values via phpmyadmin? What does this affect?

I have a bunch of aliases in my url_alias table. I want to change the source of certain rows, but I'm not sure if it would affect anything. What I need to know is if the column PID in the url_alias ...
2
votes
2answers
1k views

Any way to get localized term names in node paths

I have a node type "news" with an included term reference field named "newscategory". i18n-module incl. taxonomy-i18n is also installed, vocabulary is translatable and all terms are translated. But ...
2
votes
1answer
1k views

Dynamic URL aliasing?

Let's say we have a section /latest-projects with a menu block listing nodes sorted descending by their post date. Thus, the first item will often change and be the freshest one. Is it possible to ...
2
votes
1answer
3k views

URL patterns with entity reference [duplicate]

Possible Duplicate: Path alias tokens and node references I'm having some difficulties setting up url patterns for my drupal project. The site has 3 different content types, Main category, sub ...
2
votes
3answers
1k views

View translation path

I have a View with an path like example.com/en/news. I translated the view with Views translation. Works like a charm. But how and where do I translate the path to something like example.com/de/neues?
2
votes
1answer
1k views

Why do I get pathauto errors when using node_save?

When I'm programatically creating nodes using the code found here I keep getting the following errors: Warning: Illegal offset type in isset or empty in pathauto_cleanstring() (line 180 of .../...
2
votes
1answer
93 views

How do I change the field title on the “Generate automatic URL alias” checkbox in pathautho?

How do I change the title of the checkbox "Generate automatic URL alias" on the pathauto fieldset on the node add page? In my hook_form_node_form_alter I don't see this anywhere in the $form.
2
votes
1answer
2k views

How does one set up aliases per domain on a multi-domain site?

I have a site where there are several domains each with different content: www.domaina.com www.domainb.com www.domainc.com I want to make the alias foobar to different paths on each domain www....
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 ...
2
votes
1answer
421 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 ...
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 ...
2
votes
1answer
101 views

Is there a way to use wildcards in block restrictions first?

I know that for restricting blocks to only certain pages you can do a path such as: blog/* I'd like to know if anyone knows a way to do a path such as: */blog Basically, due to views not being able ...
2
votes
1answer
2k views

Remove “index.php” from upgraded paths

I've managed to upgrade a D7 site to D8 on localhost but I don't seem to be able to get rid of a superfluous 'index.php/' string appearing in all paths, both old and newly generated, eg: /localhost/...
2
votes
1answer
38 views

Why are two url aliases being generated for some users?

I have a site under development, that is a migration from an different cms via the Migrate module. I noticed that the links for a lot of my user profiles are not staff/lastname-firstname as I set in ...
2
votes
1answer
71 views

How to automatically skip intermediate redirects?

I've run into the issue where I end up with something like this: about-us01 --> about-us02 --> about-us The correct path is "about-us". But due to admins changing things I have ended up in a ...
2
votes
1answer
353 views

How to configure URL paths using the pathauto module for multilingual sites?

I am working on multilingual drupal website.To generate content path(i.e url) I am using pathauto module. I have not configured this module. When I add content from basic page it sets content/[node:...
2
votes
1answer
214 views

Validate URL alias before saving Node

I have a custom content type which has a url alias pattern of [node:type]/[node:title]. How can I validate the node form in order to prevent the url alias from becoming [node:type]/[node:title]-0 in ...

1 2 3
4
5
16