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
1answer
37 views

Deactivate system path

I want to deactivate the system path which comes with Drupal. I've installed the pathauto, so when I create a new page, it automatically changes domain.com/node/12 to domain.com/books/jacks-journey ...
0
votes
0answers
21 views

Pathauto generating odd results

I attempted to create a pattern using Drupal Commerce 2 categories and product title. [commerce_product:field_categories:1]/products/[commerce_product:title] When I generate the url alias I get ...
0
votes
0answers
28 views

A content type with two or more view displays with custom URLs

I have a content type that requires different views. I am defining multiple view modes in the content type manage display page and using view page mode. This works fine if the url is /%/{view mode} ...
0
votes
0answers
13 views

How to remove leftover/orphan url aliases?

For historic reasons, a site we are working on has a number of url aliases for taxonomy terms and nodes which no longer exist. I found this with direct sql query (in drush sqlc), e.g. select ua.* ...
0
votes
1answer
48 views

How to route dynamic routes to a single node while keeping the urls?

I have a node node/1 with the path alias /path. What I want is for /path/* to always behave like you went to /path, but not change the url. So going to /path/test?something=1 should behave identically ...
0
votes
2answers
40 views

How to get the raw value of the url in a link field

I'm doing this: $link = $node->field_link->first(); if ($link) { $url = $link->getUrl()->toString(); ... } If the value in the link field is /node/123 but there is a URL alias ...
1
vote
3answers
91 views

Where and how to conditionally redirect old aliases to new aliases

We are replacing a website with a new version. The domain is the same, but URL aliases in the new website are different. In many cases, I can use an old alias to calculate its corresponding new ...
0
votes
0answers
17 views

URL translations transposing between primary and secondary languages or just displaying wrong

We have a Drupal 8.7.10 site, multilingual (17 countries localized with 2 or more languages each). In the example I am attaching, we have a "people" page where we are listing people for our company ...
0
votes
0answers
45 views

Query params in url does not appears in node url after updating

I need to append node path programmatically to make the url look like [the link]?utm_source=Home%20Page&utm_medium=website&utm_campaign=AB%20Test&utm_content=Headline A I'm updating node ...
2
votes
1answer
46 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 ...
1
vote
1answer
721 views

“Route entity.path_alias.collection does not exist”

I was using Drupal 8.7.7 and decided to update it to 8.8.1. After that the back-end side of the site isn't working anymore, I can only access the site as an anonymous user. The error I get is: ...
0
votes
1answer
27 views

Need multiple url paths for single node without redirecting

I have the requirement on our Drupal 7 site where if we have a single node we need to be able to have multiple url paths to reach that node. For instance lets say we have a node with id 1234 ...
1
vote
1answer
38 views

How do I modify the URL to a taxonomy term?

I have a vocabulary called Industry with four terms. I have edited the terms to keep the URL to be automatically generated. They are following this convention: industry/term1, industry/term2, etc... ...
0
votes
1answer
20 views

How to create programmatically multiple URL alias of same taxonomy term?

I have category cars and I want to create its URL alias according to the region like if the user location is Australia than URL will mysite/australia/cars similar if the user location is USA than URL ...
0
votes
1answer
13 views

MiniOrange SAML SSO Drupal Module – Multilanguage Support

This is my first post at Drupal StackExchange. Please feel free to redirect it to the proper forum if this is the incorrect one. How do I configure Apache Server so that MiniOrange SAML SSO Drupal ...
2
votes
1answer
66 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.
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 ...
0
votes
0answers
19 views

View with Taxonomy Path

We have a taxonomy vocab called Phones that goes like this. Taxonomy: Phones -Nokia --3310 --Jitterbug --7.1 -Samsung --Galaxy S6 --Galaxy Edge --S7 -HTC -- one --S7 list goes on, but you get the ...
0
votes
0answers
37 views

CKEditor Link to write full alias instead of node ID?

Using CKEditor's CKEditor Link plugin in a WYSIWYG field is a quick way to link to internal content. When the page gets rendered, the link URL is written using the node ID, like this /node/123 instead ...
0
votes
1answer
21 views

Change path of uploaded files in zip

I've a form that allow the customer to download every photos that a photograph uploaded before. Here is my submit form : public function submitForm(array &$form, FormStateInterface $form_state) ...
1
vote
1answer
101 views

How can I get translated path aliases for a custom language switcher?

The Drupal 8 standard "Language switcher" dropdown does not give me what I need. What I need is to break everything apart into groups and subgroups, in a div, and have custom text for each Language, ...
0
votes
0answers
11 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
51 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
28 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
39 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
32 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
179 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
55 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
28 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
132 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
1answer
48 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
29 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
28 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
37 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
40 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
11 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
61 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
35 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
16 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
19 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
27 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
35 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
622 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 ...
2
votes
0answers
224 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
194 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
152 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
37 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
59 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
115 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
2 3 4 5
16