Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
search_api_page-3298007
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
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
search_api_page-3298007
Commits
f2a233c5
There was an error fetching the commit references. Please try again later.
Commit
f2a233c5
authored
5 years ago
by
Alexey Kuznetsov
Committed by
Joris Vercammen
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3061398
by gun_dose: Entity:url() returns wrong url on search api pages
parent
8a14f5b8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/PathProcessor/PathProcessorSearchApiPage.php
+6
-0
6 additions, 0 deletions
src/PathProcessor/PathProcessorSearchApiPage.php
with
6 additions
and
0 deletions
src/PathProcessor/PathProcessorSearchApiPage.php
+
6
−
0
View file @
f2a233c5
...
...
@@ -111,6 +111,12 @@ class PathProcessorSearchApiPage implements InboundPathProcessorInterface, Outbo
return
$path
;
}
// Skip processing of no 'Search API Page' routes.
$url_object
=
\Drupal
::
service
(
'path.validator'
)
->
getUrlIfValid
(
$path
);
if
(
$url_object
&&
strpos
(
$url_object
->
getRouteName
(),
'search_api_page.'
)
!==
0
)
{
return
$path
;
}
if
(
!
isset
(
$options
[
'language'
])
||
empty
(
$options
[
'language'
]))
{
return
$path
;
}
...
...
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