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
1
vote
1answer
112 views

How to change content url content/title to text/title? [closed]

I created some content and changed the URL content/title to text/title. My issue is why my changes didn't apply on some content.
0
votes
1answer
549 views

URL Aliases - Patterns Error

I'm getting a list of the following errors in my new drupal website. Any idea where this is coming from and what I need to do to fix it? The Default path pattern (applies to all content types with ...
2
votes
1answer
458 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 ...
1
vote
2answers
684 views

How to alter the URL path alias generated by content type programmatically?

Our current url pattern is [node:menu-link:parents:join-path]/[node:title]. What we need is a way to not to include the parent menu link items and only include the child menu link items. For example:...
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 ...
1
vote
1answer
79 views

How do I alter the complete url, not just the path, of nodes?

When a node's field "External URL" is filled, I want the URL of this node to be that field's value wherever it is rendered/ teasered. Writing my own service and class using (implementing) ...
0
votes
1answer
23 views

What is going wrong with the file_field_path redirect for my files?

I am using the fieldfield_path module to create a redirect for my files as they come in during a migration (this is so that I can give an original path in the migration, and create a redirect, ...
1
vote
1answer
22 views

What might cause drupal to give me Japanese values for the user profile, when the site is set to English?

I'm playing whack-a-mole bug edition with drupal yet again. Recently I've done a number of things including installing the neutral_path module. I just discovered that now my user profiles (which all ...
2
votes
1answer
69 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 ...
0
votes
1answer
103 views

Allowing content access only though aliases and views

I'm building a site in Drupal 8 that will have complex content best viewed using views. The basic pages should use nice and clean URL aliases. Is there a way to stop the visitor from accidentally ...
0
votes
1answer
39 views

How can I fix the node list page broken by changing the reference field from a term reference to an entity reference

This answer explains the set up I currently have. I have cloned the Taxonomy Term view built into views, and added some extra filtering etc. To create a depth aware list of nodes for taxonomy terms ...
4
votes
2answers
3k views

Routing and path aliases

I have created a module with its routing.yml file. mymodule.dossier: path: '/dossiers/{node}/dossier' defaults: _entity_view: 'node.dossier_dossier' requirements: _permission: 'access ...
0
votes
1answer
2k views

Internal path in twig template

I'm trying to link to a Drupal path like "Contact Us" in my Twig template. I've tried this code in my Twig template but I can't get any result. <a href="{{ contact }}">{{ 'Contact'|t }}</a&...
0
votes
1answer
665 views

Remove the URL aliases that don't have a node

I have been importing a lot of data using feeds, then deleting all imported items again when there were problems with the import. Unfortunately, the URL aliases for the pages do not seem to be deleted,...
0
votes
1answer
34 views

How to change the path when cloning the Taxonomy term view?

I am trying to clone the default Taxonomy Term view to a new view. I have a Block with the list of contents when I was clicking one of the content inside the Block, it goes to this path: taxonomy/...
3
votes
4answers
8k views

Get node alias in template

I create a about-us with Basic Page content type, and with path alias aliased it to \about-us( nid = 2),Now in template file I want to get path alias <li><a href="{{ ??????? }}">{{ '...
1
vote
1answer
543 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 ...
3
votes
3answers
768 views

How to generate URL alias without %20 in URL?

We have a custom field that is being used to generate the URL alias. One issue we have found is that when we set the page to "Autogenerate URL Alias" and set the URL pattern to "[node:...
1
vote
1answer
999 views

Programatically redirect to node/nid doesn't redirect to url alias - Drupal 8

From what I understand the module 'GlobalRedirect' has been merged into the 'Redirect' module. So the redirect module should also redirect links as node/nid to it's url alias. When creating redirects ...
0
votes
1answer
118 views

Convert path alias to ID

How can I get the ID of a taxonomy term with only a path alias, using PHP? I have a vocabulary with some taxonomy terms with a path alias like [vocabulary]/[term] (e.g. car/model) and I have repeated ...
1
vote
0answers
29 views

I have the problem in url path settings? [duplicate]

I have some basic pages in my site, it has url paths. When i pass the url its works properly. Eg: www.mysite.com/about-us it opens perfectly. But my problem is if i pass url as www.mysite.com/...
1
vote
1answer
550 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, ...
1
vote
1answer
498 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 ...
1
vote
2answers
25 views

Way To Search Content

I am new to Drupal and am currently trying to edit some pages on a site I inherited. The site does not seem well-organized as there is a panoply of URL redirects and aliases. As a result, I am having ...
0
votes
1answer
12 views

Strange error in status reports en unable to safe my taxonomy term url-alias

When I go to admin/reports/status I see this error (see image). Also I am unable to safe my taxonomy term url-alias? What does this error mean and how can I fix this?
1
vote
1answer
232 views

Use taxonomy path-alias

I've been working playing with the Facet API Search lately and I liked a lot the option that Facet API provides to use the alias of the taxonomies in the URL. I was wondering if there is a chance to ...
1
vote
1answer
168 views

Programatically is it possible to list up all the path aliases that my site has?

A site has many path aliases generated using the Pathauto module, or from the user interface. I want to get all the aliases the site has. how can I achieve this?
1
vote
1answer
845 views

How do I make parent taxonomy paths?

I installed Pathauto, Tokens and Entity API module in Drupal 8 and I have been unable to create a pattern that would allow parent taxonomies and then the final node for content type pages. In Drupal 7 ...
1
vote
0answers
61 views

How Drupal differentiates from url_alias and url path with argument [closed]

I am trying to understand how Drupal recognizes that the following two different paths set in database table url_alias are different and don't success to understand it: products --> node/8 products/...
5
votes
3answers
3k views

How to bulk update existing path alias after changing the URL alias pattern?

How to bulk update existing URL alias? I have Path auto module add path alias to URLs. I have changed the URL alias pattern. Now I want to update the pattern of old URLs also. How can I achieve this?...
0
votes
1answer
595 views

Mask a dynamic URL

Is there a way to mask a dynamic url in Drupal? Original URL: site.com/user/%/orders Masked URL: site.com/orders
0
votes
1answer
326 views

“Generate automatic URL alias” disabled by default?

I am importing a batch of products via Commerce feeds and I have to manually edit the node and enable auto aliases. I have the Pathauto module enabled. Why is it disabled?
1
vote
2answers
2k views

Drupal 8 View - get url field

How do I get the URL, not the link html for a taxonomy field in my view. For Drupal 7 I found this ticket: How do I get the raw URL as a field in Views? This mentions getting the content: path - ...
2
votes
2answers
732 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 ...
1
vote
1answer
57 views

url() not providing links to correct language alias using i18n in D7

We have a site that features two languages, EN (primary/default) and JA. On one content page, we link to another node using it's nid: url('node/123'). In EN, this returns the alias and not the node ...
16
votes
3answers
12k views

How can I get the node ID from a path alias?

I want to be able to get the nid but the only information I have is http://example.com/this-is-the-alias. Is there a way to get either the internal path of /node/* for that alias if I am not on the ...
1
vote
0answers
38 views

Views overwrite node - URL

I have node URL like: http://url.com/program/category/app/ I would like to create view with path: http://url.com/program/category/app/alternatives Is this possible? When I use in Views. I tried "/...
1
vote
1answer
421 views

Why do Chinese auto path URLs become something else?

I have a Drupal 7 site with i18n on it. There are lots of languages. The problem is that if you save a node that is in Chinese, and you select auto path, then the title that was, for example, /空氣清淨機 ...
1
vote
2answers
100 views

Why is “/es” showing up twice in my URLs?

I have a bilingual website using locale. I have a content type that has the "link" field. I have an Image Slider created with Views with the link as one of the fields. The url in the link field is "...
7
votes
3answers
3k views

How do you change the URL alias of a contact form?

Sounds simple enough, right? I can't find it anywhere. My contact form's path remains: /contact/contact_us And I have no idea where to change this. I have checked under the form settings at: /...
1
vote
0answers
646 views

Strange Behavior : Drupal 8 Views with Contextual Filter and Path Alias Together

I am testing out a views page on core 8.0.5. The path is set at job/% and the contextual filter is Content: Node ID. This page view only displays a few fields for testing purpose. The preview works ...
0
votes
1answer
93 views

how can i get path vocabulary based taxonomy term with node title using views?

I have created vocabulary called Category and it contains below hierarchy term1 term 1.1 term 1.1.1 term 1.1.2 term 1.1.3 term 1.2 term2 and i have assigned to this category to ...
1
vote
1answer
58 views

Is it possible to turn off the auto-pathing for the Pathauto module?

I use the Pathauto module for several uses, such creating URL patterns. I do want to turn off only the main feature of the module which is --- Auto path creation for nodes... Why? Because some of my ...
0
votes
2answers
2k views

find Menu Settings of node, given URL alias (or node ID)

In the Drupal 8 screen for editing a node, we have these two sections: URL Path Settings > URL alias Menu Settings (Menu link title, Description, Parent item, Weight) How, given the URL alias ...
0
votes
0answers
30 views

Pathauto, flags and contextual filter not working

I have a content type called ev and a flag for this content type. I want a view that displays the users that flagged content. When I build the user view with a relatioship Flags: User's flaggings (...
2
votes
2answers
826 views

Find Menu Link Title given URL alias, to replace node Title in breadcrumbs

In Drupal 8, how can one determine the Menu Link Title of a node, given its URL and other information like its route & parameters? This is to modify the core path-based breadcrumbs (...
1
vote
1answer
979 views

node:url token not returning clean (alias) URL

This is a follow-up question of: How to delay the execution of a rule for 5 minutes? When not delaying the action, the node:url token does not return the alias URL, but the URL with the token ID: ......
0
votes
3answers
2k views

How to ignore the first argument in view contextual filters?

I am having path aliases of the form path/val1/val2/data that are created with pathauto. I want to create a view that will be use a contextual filter and that will read only section 3 of the URL. ...
0
votes
1answer
59 views

How can I output aliases in a print function, so I can render links using aliases instead of nid?

I have a theme using a views tpl file that is making it impossible for a View to link to node content using the node’s aliases' that i’ve set up. For example it is linking to the default node/36 ...
4
votes
3answers
154 views

Is there an easy way to move non-English selected nodes into a language section?

I have a site in English but it also has a few nodes in Arabic, a few in Aramaic, a few in Hebrew, etc. Is there an easy comfortable UI way to move each group of nodes for a language section? To ...