Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pathauto-3254939
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
pathauto-3254939
Commits
190862a0
Commit
190862a0
authored
13 years ago
by
Dave Reid
Browse files
Options
Downloads
Patches
Plain Diff
Restored assigning $node->path to the newly created alias.
parent
0039c55f
No related branches found
Branches containing commit
Tags
6.x-2.0-rc1
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pathauto.inc
+2
-2
2 additions, 2 deletions
pathauto.inc
pathauto.module
+3
-1
3 additions, 1 deletion
pathauto.module
with
5 additions
and
3 deletions
pathauto.inc
+
2
−
2
View file @
190862a0
...
...
@@ -506,8 +506,8 @@ function pathauto_create_alias($module, $op, $source, $data, $entity_id, $type =
'alias'
=>
$alias
,
'language'
=>
$language
,
);
_pathauto_set_alias
(
$path
,
$existing_alias
,
$op
);
return
$
alias
;
$success
=
_pathauto_set_alias
(
$path
,
$existing_alias
,
$op
);
return
$
success
?
$alias
:
NULL
;
}
/**
...
...
This diff is collapsed.
Click to expand it.
pathauto.module
+
3
−
1
View file @
190862a0
...
...
@@ -428,7 +428,9 @@ function pathauto_node_update_alias($node, $op, $options = array()) {
}
module_load_include
(
'inc'
,
'pathauto'
);
pathauto_create_alias
(
'node'
,
$op
,
"node/
{
$node
->
nid
}
"
,
array
(
'node'
=>
$node
),
$node
->
nid
,
$node
->
type
,
$language
);
if
(
$alias
=
pathauto_create_alias
(
'node'
,
$op
,
"node/
{
$node
->
nid
}
"
,
array
(
'node'
=>
$node
),
$node
->
nid
,
$node
->
type
,
$language
))
{
$node
->
path
=
$alias
;
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment