Step to reproduce issue.
1. Create modal Called test- enter title body and in page section give path "/node/1".
2. visit "/node/1" page modal works well.
3. Edit test modal and now change path as "/abcd" in page section where "abcd" is path alias for "/node/1"
4. now visit "/abcd" or "/node/1" page modal will not show.
| Comment | File | Size | Author |
|---|---|---|---|
| #23 | interdiff.3100182.21-23.txt | 830 bytes | abhisekmazumdar |
| #23 | 3100182-23-modal_not_working_on_alias_page.patch | 8.02 KB | abhisekmazumdar |
| #21 | modal_not_working_on_alias_page-3100182-19.patch | 7.77 KB | thalles |
| #19 | interdiff-17-18.txt | 3.97 KB | thalles |
| #17 | modal_not_working_on_alias_page-3100182-17.patch | 7.42 KB | hardik_patel_12 |
Comments
Comment #2
hardik_patel_12 commentedComment #3
hardik_patel_12 commentedAdding dependency in test file also
Comment #4
renatog commentedInteresting @hardik_patel_12
Very good!
We need to check the tests right?! The test was failed =/
Comment #5
hardik_patel_12 commented@RenatoG , yes test has 1 error, but i am not able to figure out why is getting failed can you help me here
Comment #6
renatog commentedYes, of course.
Thalles created these tests but I didn't check it yet.
@thalles: please, can you help with this?
Comment #7
Rangaswini commentedComment #8
Rangaswini commentedHello, I have tested the patch and it works fine.
1. Inside ADVANCED option
On button click, if you want to redirect to internal or external URL then that URL needs to add in OK Button Redirect URL
field
a. External URL
b. Internal URL
2. After successfully done Add modal or Edit modal, will be able to see a pop-up
3. On button click, it will redirect to a link provided in advanced option.
Comment #9
Rangaswini commentedComment #10
hardik_patel_12 commentedHello @Rangaswini ,
I think you have reviewed for different issues, kindly recheck.
Thankyou
Comment #11
renatog commentedYeah. Makes sense.
This test is related to #3100534: Redirect after modal submit
The current issue we need to check the reason that the automated tests are failing.
Comment #12
Rangaswini commented@hardik_patel_12 @RenatoG, Patch is not getting applied properly. Think so there may be some new changes got added.
Comment #13
abhisekmazumdarAs per the above comments moving this issue.
Comment #14
Rangaswini commented@hardik_patel_12 @RenatoG
Apologies for my comment #8
I have accidentally added a comment on this issue. and comment #8 is for https://www.drupal.org/project/modal_page/issues/3100534 issue.
Comment #15
renatog commentedRelax, no problems
Thank you all for your help
Comment #16
hardik_patel_12 commentedAs per comment no #12 , i will look into it. @Rangaswini thanks a lot for review.
Comment #17
hardik_patel_12 commentedFollow a new patch.
Comment #18
hardik_patel_12 commentedComment #19
thallesFollow a new patch and the interdiff.
There were some changes, so I ask you to check
Comment #21
thallesComment #22
thallesThis change broken the test.
And I change this line to allow the
Comment #23
abhisekmazumdarThank You @thalles for the patch. Just an suggestion to follow the patch naming pattern.
Updated the patch with some coding standard fixes.
Comment #25
thallesComment #26
renatog commentedHello guys, congrats on the job! Amazing!
I saw a detail:
On this part
$aliasPath[] = \Drupal::service('path.alias_manager')->getPathByAlias($path);We can use dependency injection stead of \Drupal::service('path.alias_manager') that's right?
Example:
$this->pathAliasManager->getPathByAlias($path);Comment #27
wil2091 commentedHey guys,
I noticed the line
->condition('pages', NULL, 'IS')removed from getModalIds() .This is causing the modal not to show in all pages if the pages field is left blank.
Can this be added back?
Comment #28
thallesThanks @wil2091!
I will check this!
Comment #29
thallesComment #31
thallesComment #33
wil2091 commented