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

What happens to URL alias when a node is unpublished?

We have many pages where we set "Generate automatic URL alias" to true and false. Then we will eventually unpublish some of the pages. Looking at Webmaster tools, we have found the URLs are still ...
0
votes
1answer
305 views

Multiple aliases per node (and active trail)

Our site is split down the middle for tenants and landlords. But we have content the is the same for both such as "how to report antisocial behaviour". User would normally navigate something like "...
-1
votes
1answer
162 views

Can I use taxonomy field to display in URL using [current-page:query:?] token?

How to display header field in URL with query token with Drupal 7? Working on this site, and I disabled title field for taxonomy terms, instead I put a header in there...didn't know could lead to ...
1
vote
1answer
68 views

Multilingual pages links showing node instead of URL alias

My web has 2 languages, English and Malay. The language selection is by session of ?lang=en or ?lang=ms. English is the default language and it is working fine. All internal links are using the ...
-2
votes
4answers
418 views

Admin edit … page not found because of alias with characters

hi everyone … my problem is in the title I can not edit pages that have accent in alias path e.g.: http://localhost:8888/MYSITE/bôbô/ïèéà/my-contënt i got a page not found .. but i still able to ...
1
vote
1answer
971 views

Set views exposed filter using url

In a view an exposed filter of type taxonomy reference exists, the referenced taxonomy vocabulary contains about 15 terms, the functionality I'm trying to get is to allow user call view with a default ...
0
votes
0answers
352 views

How do I create a path alias and redirect node?

I want to create a path alias pattern like [base_url][title] and overwrite the existing path alias for a specific content type. Also, all the nodes are redirected to the new custom alias. e.g., ...
1
vote
1answer
1k views

How to change default file system path in D8?

In D8, where to change the Public File System Path to be : sites/default/files/[nodeID]/ Do I need write a module?
-1
votes
1answer
107 views

Restructure Language Prefix example.com/ca-fr [closed]

I created new Language method in Drupal 8, I need url example: example.com/en-fr, The first part of URL is a country code and the second is a language code. Language switcher should give possibility ...
1
vote
2answers
1k views

Use taxonomy path for a node's path alias

Is it possible to use a token to reference the alias of a taxonomy term in the pattern of an automatic alias for a node type where that term has been selected, in Drupal 8? (Let's assume a single ...
0
votes
1answer
852 views

'The alias is already in use' when editing a node that had an alias generated programmatically

I'm currently using an event subscriber to latch onto an event from a module that creates and/or updates nodes. I'm programmatically setting the url alias based on a user inputted field by doing the ...
0
votes
2answers
66 views

Node only accesible by path alias

I was wondering if it's possible to make nodes without path alias not accessible. By this I mean that visiting /node/$nid/ users will not be able to see its content, but if that node has an path alias ...
-1
votes
1answer
42 views

All content types are using an incorrect /edit url

I’ve run into a really strange issue. Just recently every new node I create, of any content type, has a nonsensical /edit url. Instead of /node/[nid]/edit, it’s /using-library/frequently-asked-...
1
vote
1answer
630 views

Redirect to 404 page, if URL alias does not exist

I am developing multilingual site in Drupal 8. I added content in Turkish language and did not create any translation for that node. Suppose node ID is 123, so system URL is http://example.com/tr/...
1
vote
2answers
114 views

How do I use only a taxonomy term in the path alias?

I have content that is tagged with multiple terms from the same vocabulary. How can I use only the first term the node was tagged with, in the URL structure, e.g. domain.com/first/term/with/depth/...
0
votes
2answers
72 views

How do I avoid mydomain.com/node/1 or mydomain.com/node/4 is used?

I am using the Pathauto module for creating user-friendly and SEO-friendly URLs. Therefore, I do not want and there is no need that the "old URL" like mydomain.com/node/1 or mydomain.com/node/4 is ...
-1
votes
1answer
19 views

Diffrence between path /user and path /admin?

Is there a difference between the path /user and the path /admin? Example: www.page.com/user and www.page.com/admin I'm asking because I can access the /user page but not the /admin page.
2
votes
1answer
96 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 ...
0
votes
1answer
31 views

Why does Drupal still convert links using a non-existant url alias pattern

First I created an alias for an entity type like this: project/[project_type]/[id] which worked fine. After a while I decided to delete all aliases and created a new pattern, and bulk generated all ...
1
vote
0answers
68 views

Token, Filefield_Path, Path Auto and Image

I'm trying to put the Images (Image 1.jpg) for a content type (Critter\Fluffy) into a folder such as thus: files/Critter/fluffy/Image1.jpg Yet, no matter which set of tokens, it doesn't take the ...
0
votes
1answer
641 views

How to modify path alias in Drupal 8 [closed]

Currently I'm on example.com/node/add page. Now I wish to add content in content type = article. What I want is, when accessing path /node/add/article, add content url should look like node/add/...
0
votes
0answers
390 views

How do I get a path alias using the REST API?

I use Drupal 8. I generated path aliases for user entities using the Pathauto module, so /user/1 is accessible through /yourusername. How can I access the path alias using a GET command (e.g. REST ...
0
votes
1answer
89 views

How to use unique taxonomy term for nodes in Drupal 7?

I have unique categories assigned to nodes via taxonomy module. now I want the path to be something like this: root/taxonomy-vocabulary/taxonomy-term/node-titel Any ideas? This question has already ...
1
vote
1answer
452 views

Can I create a url alias for private files?

Should we be able to add a url_alias (in D8 from /admin/config/search/path) for a private file? Right now it allows me to add an alias (and I can see that it is being rendered in the front end) but it ...
1
vote
0answers
61 views

How to show a node view after clearing cache?

I'm running into an odd situation with views and pathauto not showing a node. Here is what is happening: I have created a content type called "Āsana". In it, there are several fields and paragraphs. ...
2
votes
0answers
1k views

Get the node ID from the path alias [duplicate]

What is reliable way to get the node id from the path alias in Drupal 8?
0
votes
1answer
62 views

View with url aliases

I am writing a view that lists all content of a specific type. I would like to, additionally, be able to set paths to content made by a specific user. For example drupal.dd/content will give all ...
2
votes
1answer
377 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 ...
0
votes
1answer
107 views

How to choose appropriate token for URL path alias pattern display in URL?

Using Drupal 7 + PathAuto + Token + Entity API Having a really hard time setting url aliases...for nice URLs. I have it set up like this: [node:field-root:parents]/[node:field-root:name]/[node:title]...
1
vote
2answers
876 views

Drupal 8 CKEditor dynamic internal links plugin?

In Drupal 8 CKEditor WYSIWYG editor when I create a link to an internal page I use this URL path which I type manually: /parent/child/pagename I then found a few buttons that can be added to the ...
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: ...
0
votes
1answer
312 views

How do I get a parent-group alias as token for the Pathauto module?

When a user sets his groups alias to lets say "mynewgroup" you can view the group at www.example.com/mynewgroup. How to set pathauto presets to create www.example.com/mynewgroup/mynewgroupcontent as ...
1
vote
1answer
40 views

http://example.com/node/111 also accessible through http://example.com/node/111.000

An acunetix scan has complained about the following: http://example.com/node/111.000 or http://example.com/node/111.0 or http://example.com/node/111.000000 (any number of zeros) serves the node http:/...
5
votes
2answers
340 views

Managing custom aliases on translated content

We have a Drupal 8 site with translated content, and using the Pathauto module. The issue we are running into is that when we un-check the "Generate automatic URL alias" on, say, the Chinese node, ...
1
vote
2answers
209 views

How do I vary PathAuto paths based on a field?

I have a field type called "Venue". If the Venue is in the US, I want the path to be: /CITY/my-venue But if it's in any other country, the path must be: /AU/CITY/my-venue In other words, non-US ...
1
vote
1answer
37 views

Best way of having Pathauto based off node title, but not tied to it? [closed]

Sorry for the poorly worded question, I'll try to better explain myself. I'm swapping (not migrating) from WP to Drupal and I'm trying to replicate WP's URL feature. I want it to initially be based ...
0
votes
1answer
912 views

How to get term from alias

I've to get the taxonomy_term tid from the alias ('/alias/of/my/term') Is there a way to do this without making a query on url_alias table?
0
votes
1answer
520 views

a href links not showing url aliases

I am using redirect module with Drupal 8 latest version. It is working fine when we open any node in url, it converts node to the path alias. But issue is with a href links. When we hover on any "a" ...
-1
votes
1answer
42 views

Why is a URL alias messing up my view's contextual filter?

I'm having an issue configuring a URL alias that redirects content to a view with a contextual filter. Here's my working setup: I have a bunch of content of type SEEL Lesson Plan. To display these ...
0
votes
1answer
29 views

Drupal 7.53 pathauto pattern field do not transliterate [closed]

I created a new field in on a content type I have on my application (Drupal 7.53), then in /admin/config/search/path/patterns I have set a pattern to this type of content as the following: [node:...
4
votes
1answer
328 views

How to return all aliases for a path?

I'm aware of this question Find all aliases for a given node - but this appears to be for 7, and I'm looking for a solution for 8. I'm also aware of the AliasStorage and AliasManager classes, which ...
0
votes
2answers
170 views

Get Url Alias in Algolia

I have implemented an Algolia search in my drupal instance and would like to use the node url alias (/some-example-path) rather than node id (/node/{nodeId}). Is there a quick and easy way to do this ...
0
votes
2answers
331 views

D8: The same content type, but different url path aliases pattern based on paragraphs. Possible?

I have several paragraphs nested into one content type. Users can add only one type of paragraph. Is it possible to create a url alias pattern based on paragraphs? For instance, I have paragraphs "car"...
1
vote
1answer
4k views

get taxonomy term aliased path when its a referenced field in a $node entity

what I have is a $node and know how to get its aliased URL but I also have a field field_category that I know how to get the name but how do I get the url alias for it $nid = 1; $node = \Drupal\node\...
3
votes
1answer
69 views

Single path for multiple menus

I need to list nodes both in the main site navigation and within a section side navigation. Is it possible to target a specific menu for the Pathauto module to reference? This is an example of the ...
0
votes
1answer
401 views

query to fetch all path aliases's content type and title

I want to know the titles and content types of all the aliases given in table url_alias . For this, I'm writing query : $connection = \Drupal::database(); $query = $connection->select('...
26
votes
7answers
38k views

Get path alias from NID (or node object)

I have a node object, and I am trying to use it to get a given path in Drupal 8. There was drupal_lookup_path() in Drupal 7 but I'm not seeing any equivalent or documentation for Drupal 8. What's ...
1
vote
1answer
2k views

How to get term alias in twig templates

I have created a block to show the sibling terms of the term being viewed. In the twig template I am looping through the terms to display the names linked to their respective pages. Now I unable to ...
2
votes
0answers
57 views

Why would routes lose their aliases?

I have experienced this twice now on a Drupal 8 site. Pathauto is at its current version and Drupal is 8.2.6. What is happening is sometimes nodes 'lose' their aliases and revert back to being node/...
1
vote
1answer
328 views

Domain Access and One.com hosting (funny subdomain rewrite)

I have a D7 installation that uses Domain Access to distinguish between a main website example.com and a minisite event.example.com. They share the same document root / Drupal installation and the ...

1 2 3 4 5 16