Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mercury_editor
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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
mercury_editor
Merge requests
!26
Fixed forwarding URL detection and added test for use case.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fixed forwarding URL detection and added test for use case.
issue/mercury_editor-3404755:3404755-clicking-done-without
into
2.1.x
Overview
0
Commits
1
Pipelines
2
Changes
2
Merged
Justin Toupin
requested to merge
issue/mercury_editor-3404755:3404755-clicking-done-without
into
2.1.x
1 year ago
Overview
0
Commits
1
Pipelines
2
Changes
2
Expand
Closes
#3404755
0
0
Merge request reports
Compare
2.1.x
version 1
a990fcaa
1 year ago
2.1.x (base)
and
latest version
latest version
a990fcaa
1 commit,
1 year ago
version 1
a990fcaa
1 commit,
1 year ago
2 files
+
13
−
12
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
src/Entity/MercuryEditorEntityFormTrait.php
+
1
−
1
Options
@@ -292,7 +292,7 @@ trait MercuryEditorEntityFormTrait {
@@ -292,7 +292,7 @@ trait MercuryEditorEntityFormTrait {
public
function
processRedirectUrl
(
array
$element
,
FormstateInterface
$form_state
)
{
public
function
processRedirectUrl
(
array
$element
,
FormstateInterface
$form_state
)
{
$entity
=
$this
->
tempstore
->
get
(
$this
->
entity
->
uuid
());
$entity
=
$this
->
tempstore
->
get
(
$this
->
entity
->
uuid
());
if
(
$entity
->
id
())
{
if
(
$entity
->
id
())
{
if
(
$entity
instanceof
RevisionableInterface
&&
$entity
->
isDefaultRevision
())
{
if
(
$entity
instanceof
RevisionableInterface
&&
(
$entity
->
isDefaultRevision
()
||
$entity
->
isLatestRevision
())
)
{
$element
[
'#value'
]
=
$entity
->
toUrl
(
'canonical'
,
[
'absolute'
=>
TRUE
])
->
toString
();
$element
[
'#value'
]
=
$entity
->
toUrl
(
'canonical'
,
[
'absolute'
=>
TRUE
])
->
toString
();
}
}
else
{
else
{
Loading