File tree Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,11 @@ public function getCode()
129
129
*/
130
130
public function getUrl ()
131
131
{
132
- return $ this ->bag ->get ('url ' );
132
+ $ url = $ this ->bag ->get ('url ' );
133
+
134
+ if ($ url !== $ this ->request ->getAbsolute ('/ ' )) {
135
+ return $ url ;
136
+ }
133
137
}
134
138
135
139
/**
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ class WiredTest extends TestCaseBase
4
+ {
5
+ public function testOne ()
6
+ {
7
+ $ this ->assertEmbed (
8
+ 'http://www.wired.com/?p=2064839 ' ,
9
+ [
10
+ 'title ' => 'Review: Yi 4K Action Camera ' ,
11
+ 'description ' => "For nearly two years GoPro’s Hero4 Black has been the standard-bearer for action cameras. But there's a new contender. " ,
12
+ 'imageWidth ' => 2680 ,
13
+ 'imageHeight ' => 1507 ,
14
+ 'type ' => 'rich ' ,
15
+ 'code ' => true ,
16
+ ]
17
+ );
18
+ }
19
+ }
You can’t perform that action at this time.
0 commit comments