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
4 views

How to get taxonomy tree with path auto token?

I'm using Path auto module to automatically set url of articles. Last part of url is node title and [node:title] works just fine. But url part before node title should follow taxonomy structure (tree) ...
0
votes
1answer
11 views

How do I use Taxonomy reference field tokens in a path alias?

I have a content type with two taxonomy entity reference fields. Both are required fields that only allow one value. I have path_auto and token enabled. I would like to use them to set the path of the ...
1
vote
0answers
22 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
1answer
94 views

Is the path_alias table queried for all URLs?

I'm trying to generate SEO-friendly URLs for a set of exposed filters. For e.g.: /analyst-relations/firm?related_firm=5072 would look like /analyst-relations/firm/forrester one way I imagined doing ...
0
votes
0answers
21 views

How to create user sub pages while having url aliases?

So i have an alias pattern set up for the profile pages where it replaces /user/{ID} with their username like /username Now i want to add a sub page to the user profile with an url like: /username/...
2
votes
2answers
55 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 ...
0
votes
1answer
42 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
22 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
14 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
55 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
46 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
97 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
47 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
51 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
1k 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
28 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
40 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
26 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
15 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
77 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
45 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
120 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
63 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
32 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
43 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
41 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
208 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
59 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
30 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
166 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
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\...
0
votes
2answers
51 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
29 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
42 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
74 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
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 ...
0
votes
1answer
18 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
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
742 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
243 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
217 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
2 3 4 5
16