Questions tagged [drupal-path-aliases]
32 questions
8
votes
1 answer
Intellisense for module-alias Package
I am using this npm module (module-alias)
https://www.npmjs.com/package/module-alias in my Node project.
To make use of this package you have to set path aliases in the package.json file.
However, using this package comes with the disadvantage,…

Florian Ludewig
- 4,338
- 11
- 71
- 137
6
votes
4 answers
How to programmatically bulk create/update aliases in Drupal 7
How to programmatically bulk alias node urls by using only drupal 7 core (with it's great batch API !)?
My question is actually how to make drupal use and recognise the aliases stored in url_alias table?
Background:
The project I work on has more…

Ironflood
- 73
- 1
- 6
4
votes
7 answers
Drupal. Get path alias from current url without the installation's folder arguments
I'd like to retrieve the current page path alias without the installation's folder arguments.
I'm using:
drupal_get_path_alias(request_uri())
But this returns installation/whatever/actual/path and I want to retrieve the actual/path only no matter…

ozke
- 1,622
- 4
- 25
- 44
3
votes
4 answers
Drupal 7 some non-existing URLs are not Redirecting to 404?
In Drupal 7, some of (non-existing) URLs are not redirecting to 404 or any error page it should. Instead, it still remains showing its Top Parent Folder. For example…

夏期劇場
- 17,821
- 44
- 135
- 217
2
votes
1 answer
Prefixing the pathauto structure with a country code
My client wants their site to be localised, so that example.com/uk presents the uk version, example.com/aus would be the australian version etc etc. However, I want the actual content, and the nodes delivered, to remain and the basic path structure…

Matt Fletcher
- 8,182
- 8
- 41
- 60
2
votes
3 answers
drupal language switcher unaware of the aliases? switches to node/XX/ instead of LANG/text
I have a big problem with the language switcher,
I have a multi language site that has every article in english and spanish , spanish being the default
so if one article is named :
domain.com/mi-articulo then the english one will be…

PartySoft
- 2,749
- 7
- 39
- 55
2
votes
2 answers
Drupal path alias not found
Got a Drupal6 install, and I'm using a webform to collect some data. The webform has a path alias set on the edit page as 'contact_us'. The issue that I can't figure out (and hard to reproduce) is from time to time, some users end up on the page…

Eric M
- 101
- 5
1
vote
1 answer
Using Pathauto on Articles in Drupal
In Drupal 7, I have a site with thousands of articles. I'm using taxonomies to sort my articles, and a view which uses a content filter to display the appropriate articles with the associated terms on certain pages. Standard functionality.
I've…

Brendan
- 107
- 2
- 13
1
vote
1 answer
Drupal pathauto token [term:parents:join-path] works wrong
If parent term url wasn't autogenerated. And children term url was generated using token [term:parents:join-path], it use wrong parent category url (autogenerated, but not real).
Imagint we have set Blog taxonomy terms URL aliases generation rule to…

Rantiev
- 2,121
- 2
- 32
- 56
1
vote
1 answer
Drupal .htaccess url aliases
How can I make my URL (mysite.com/node/1) appear like this mysite.com/categoryname/myarticlename.html
I've used Joomla! until now, and it has a great option to use mod_rewrite with .htaccess.
How can I do this with Drupal?
Is this possible?
I don't…

NETCreator Hosting - WebDesign
- 6,886
- 3
- 23
- 43
1
vote
1 answer
Migrating Drupal site - URL aliases = 404 Not Found
I am migrating a Drupal site from Host X to Amazon Web Services...this isn't my first site migration, nor am I new to AWS (it's not my security settings, it's not apache). I had this problem a while back with another site, but due to the…

user2104314
- 13
- 5
1
vote
2 answers
Node Alias issue in Google?
My website pages all show up in Google search results as *.com/node/#### instead of the alias name.
I need help fixing the naming convention to show up in Google via alias, as they are also listed in the sitemap.xml. I'm not sure if this needs to be…

killbill
- 149
- 3
- 11
1
vote
4 answers
Drupal Bulk Update Url Alias
I have a set of nodes (about 200) that need to have their url alias updated since we changed the setup; from "site.com/things-to-do/title" to "site.com/guides/title"
I tried using VBO, but when I select the nodes, click Update Url Alias, and then…

homersheineken
- 323
- 6
- 15
0
votes
0 answers
Drupal - AliasManagerInterface -deprecated Drupal\Core\Path\AliasManagerInterface
Error:
The website encountered an unexpected error. Please try again later.
TypeError: Argument passed to Drupal{module name}\Theme{class name}::__construct() must implement interface Drupal\path_alias\AliasManagerInterface, instance of…

sudhan
- 1
- 2
0
votes
0 answers
Drupal 9: How to add field value on path url?
Im creating a new multilingual site using drupal 9. Is it possible to add field value(im using taxonomy) from content types after the domain?(eg. www.example.com/**value**/en/about). And also restrict access to pages that do not have that…

marf
- 13
- 3