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
0answers
8 views

Saving a translated node overwrites the last saved URL aliases [duplicate]

In Drupal 7 I updated the node in english then alias update in english version which is right I updated the same node this time in french then alias updated in french and also updated in english ...
0
votes
0answers
23 views

Symbolic link directory path repeats in URL

I've taken over on a project developed by another supplier and now tasked with resolving the issues. I don't know if this is a Drupal, PHP or Apache problem, but here goes. It's a Drupal 8 multisite ...
0
votes
0answers
15 views

Exclude “route:<nolink>” or “root” from pattern

Using Pathauto patterns, the closest I can get to my desired output is /[node:menu-link:parents:join-path]/[node:title]. However, I am wondering if there is an approach to configure a pattern where a ...
0
votes
0answers
28 views

Contextual filter on entity reference with Pathauto

I want to create an advanced view in Drupal 8 using contextual filters and relationships, but I fail. BACKGROUND: I have three content types: Programme Module Testimonial Testimonials may span ...
0
votes
1answer
21 views

Pauthauto breaking for one specific page

I have a Drupal 8.7 site with a content type for which I have just activated automatic URLs via pathauto. We have a number of pages using this content type, and all of them worked perfectly when I ...
0
votes
3answers
62 views

How can I have a second alias for a node to be displayed in a different view mode? [duplicate]

I have nodes whose content type is X that I would like to render differently based on the node path. I'd like to use the default view mode for a path alias and a custom view mode for the other path ...
0
votes
0answers
27 views

Tell the site to ignore the file path

I have a d7 site with static files under the docroot. (www.example.com/top-directory/sub-directory/file.php) I want all of the pages to follow the '/top-directory/sub-directory' URL pattern, ...
0
votes
0answers
26 views

How to force pathauto to bypass common word removal based on content type?

If one set up a url pattern for nodes of certain type to node/[node:title] and then try to create a node with title this is my title the generated pattern is node/my-title. This is because pathauto ...
0
votes
1answer
35 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 ...
1
vote
0answers
29 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\...
0
votes
2answers
17 views

Using pathauto for taxonomy pages

I'm using pathauto on a D8 site successfully for pattern type Content using a pattern like this: [node:content-type]/[node:title] But I'm not having any luck at all when trying to use it for pattern ...
0
votes
1answer
17 views

Generate automatic URL alias removing words

I'm trying to create a topic page for "internet of things", but each time I create the page I notice the URL slug removes the word "of" in it. By default Generate automatic URL alias is checked. The ...
0
votes
0answers
20 views

Prefilter facet using URL

We have added facet_categories to our Articles page which is a view page with the path url of /articles. Facet_categories is setup to be the Articles->Category field (which is a taxonomy term). ...
0
votes
0answers
32 views

How do I make comment URLs include the node URL on which they are displayed?

Default URL for comments is comment/1#comment-1. I would like it to be [node URL]#comment-1 where [node URL] is the URL of the node on which the comment is displayed. I have tried to use the pathauto ...
0
votes
0answers
8 views

Is it possible to use the path alias token as file path with filefield_paths module?

I'd like to use the path alias in order to create the folder structure of the uploaded file. First of all I could not find the correct token in the list and after a while decided to create my own ...
0
votes
1answer
22 views

Modify token used in path URL alias generation

We would like to have the URL pattern for Article content type to use article/[node:field_short_description]. In the scenario where field_short_description is not populated, we would like for the URL ...
1
vote
0answers
20 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 ...
0
votes
1answer
15 views

Stale Pathauto Alias

I'm just curious how other Drupal developers handle nested path aliases when they are based on another page's url pattern. I have a product landing page (it's a "basic page" node). When it's created,...
0
votes
0answers
15 views

Multiple aliases based on taxonomy terms

I have a content type which has a categories field that contains values from A-C. This is a multi-select list as below. I have configured the URL pattern as below. categories/[node:field-token-of-...
0
votes
0answers
21 views

drupal_lookup_path returns false

I have Entity Translation, and a node (the original) with the following URL site.com/some/nice-url Then I have the Italian version site.com/it-it/some/nice-url2 Problem is that Drupal function ...
0
votes
0answers
34 views

Have alias URL remain alias instead of resolving to target URL

I have a Drupal site with an Event content type. This content type has an Event Categories taxonomy field on it, which, as you can guess, categorizes events. When you navigate to the URL of a ...
0
votes
2answers
156 views

Programmatically specifying pathauto alias

I am working on a custom module to specify the pathauto alias of a new node, based on taxonomy terms that a user sets when they create the node. For instance, for my blog post content type, the alias ...
0
votes
0answers
20 views

Pathauto not automatically creating URL aliases

I have a fresh install, using pathauto 7.x-1.3 and for some reason it does not create an URL alias like configured "/admin/config/search/path/patterns" when creating nodes. What happens: When ...
2
votes
0answers
101 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....
1
vote
2answers
79 views

How to remove partricules and apostrophes in url

I'm using drupal 8 and Pathauto. I have title of the type (in French) Personnes d'Allemagne, I would like to delete d' to have like url personnes-allemagne. Pathauto removes the apostrophes well, ...
1
vote
1answer
54 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 ...
0
votes
1answer
31 views

Cannot create custom translated path alias for /user/login

I cannot create a path alias for spanish translation. When I try to create, it says Route is invalid or you don't have access Saw this but it doesn't have an answer: https://www.drupal.org/project/...
0
votes
0answers
28 views

Using contextual filters with multiple taxonomies plus dynamic paths

I have a content type, FAQ, which has the Title, Body, and Related AP Course(s) fields. The last is a node reference field, where the target is a AP Exam node. I'd like to create a view page that ...
1
vote
1answer
41 views

Can a view and a content type share the same alias pattern?

I'd like to have this URL structure on a Drupal 8 site: /schools/usa -> handled by custom view /schools/europe -> handled by custom view /schools/school-name -> handled as a normal node So ...
1
vote
0answers
66 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 ...
0
votes
1answer
143 views

Bulk update pages that use old URL alias by content type

We have a content type, Basic Page that recently had the URL pattern changed from www.example.com/page/page-title to www.example.com/page-title. Under the Pathauto settings found at /admin/config/...
4
votes
1answer
193 views

How do I programmatically update pathauto paths for an entity?

If an entity has opted into auto generated paths, you could simply re-save the entity. However saving an entity is particularly inefficient, and the path/routing system runs outside of the entity ...
4
votes
2answers
195 views

How can I show the user login block on the 403 page?

With D8, I have a node (content type: basic page) that I use as a custom 403 (access denied) page. I set this as the custom 403 page on: /admin/config/system/site-information. The path is /node/21, ...
0
votes
1answer
21 views

Countries Additional Data Tokens not working

I'm using Pathauto and Countries to build path aliases that reflect the country and corresponding continent of a node. For example if a node's country field is set to Spain the url should be: europe/...
0
votes
1answer
30 views

How to reference URL relative to current page in a block

I have a custom block where I need to reference a URL relative to the current page (such as node/7/images or node/293/images) that will link to the "Images" view mode I made for the node. I am using a ...
0
votes
0answers
57 views

Grandchild Pathauto from Nodes

I have a node that has a parent_field (entity reference) that if left empty, that node is a parent. If parent_field has data (ie the nodes parent node name) then I can easily add pathauto in there ...
1
vote
1answer
399 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/...
0
votes
0answers
92 views

Remove string from [node:url] and node alias

Background We have enabled content translation where we detect based on the content language. This allows us to translate properly as needed, but it has a bad side effect. It will not only add ?...
0
votes
1answer
170 views

Multiple URLs for same node

anyone know how to create a URL alias and not redirect the user? I have a node with its alias set to /sign-up, but I also want it accessible via /caregiver/sign-up. I created a URL alias, but it seems ...
1
vote
1answer
74 views

How to display the path without alias?

With Drupal 8 and Commerce 2.10 I created a php code to display the link of my store. When I go to the link, it displays: https://www.domaine.com/shop/name I want to display without alias: https:/...
0
votes
2answers
35 views

Turn /node off but keep aliases

I want my node page turned off. I don't want mysite/node/3 to work. I want it to display 404. I tried rabbit hole and it worked but the problem ws that it also stopped the aliases from working. Is ...
0
votes
1answer
243 views

Programmatically delete pathauto alias pattern?

I know how to remove a pattern via the UI. Is it possible to do this programmatically to be used in hook_update()? EDIT: I think asking this answered my question. Will post a followup answer. ...
0
votes
2answers
171 views

Select the right pathauto alias for a node

I'm working on a drupal 8 project, I need to access the content type X nodes via two aliases depending on some conditions, for this I've created two Pathauto patterns using Pathauto contrib module: ...
0
votes
1answer
87 views

Alias / to /lang_code

I got a multilanguage configuration with language detection based on URL(/en /fr). Drupal behavior redirects everything to so it would have those two prefixes or, if setup, it will ignore the prefix ...
0
votes
0answers
26 views

Vocabulary Terms redirect 404 page not found

I am using drupal 7.59 Today i see the my taxonomy's terms redirecting page not found. these topic i have done but the issue is still happening. I'm using pathauto module in this module i have ...
1
vote
0answers
115 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 ...
2
votes
2answers
372 views

How do I remove the default node path when using a path alias?

When I add path aliases, how do I remove the system path (/node/[nid]) in Drupal 8, to avoid Google to index the page twice?
0
votes
1answer
157 views

Contextual Filter not working wiht URL aliases

I have this issue with contextual filter. I have set the filter so it would get an ID of an article and based on that ID, it would show the name of the author. The problem is, it doesnt work with URL ...
1
vote
1answer
627 views

Create custom URL pattern

Using the pathauto module, we could have created custom URL patterns using the hook_pathauto(). I could not find any such way to achieve the same in D8. ref. https://envisioninteractive.com/drupal/...
0
votes
1answer
90 views

URL Pattern in node entity reference

I have a content type A, which contains an entity reference field. That field references a content type B. I have create automatic URL paths for both content types. When I create a new node of type A,...