Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
linkit
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
linkit
Commits
01b39f63
Commit
01b39f63
authored
Aug 5, 2016
by
Emil Stjerneman
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#2779735
by anon: Ensure canonical URL in LinkitFilter
parent
dc12ee45
No related branches found
No related tags found
2 merge requests
!78
Issue #3472672: Fix the issues reported by PHP_CodeSniffer
,
!59
Revert "Issue #2900766 by rubendello: Not all autocomplete values are...
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Plugin/Filter/LinkitFilter.php
+1
-1
1 addition, 1 deletion
src/Plugin/Filter/LinkitFilter.php
with
1 addition
and
1 deletion
src/Plugin/Filter/LinkitFilter.php
+
1
−
1
View file @
01b39f63
...
...
@@ -97,7 +97,7 @@ class LinkitFilter extends FilterBase implements ContainerFactoryPluginInterface
$element
->
setAttribute
(
'href'
,
$url
);
}
else
{
$url
=
$entity
->
toUrl
()
->
toString
(
TRUE
);
$url
=
$entity
->
toUrl
(
'canonical'
)
->
toString
(
TRUE
);
$element
->
setAttribute
(
'href'
,
$url
->
getGeneratedUrl
());
}
...
...
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