File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -35,22 +35,18 @@ describe("Instance of URL", () => {
35
35
describe ( "explorerUrl" , ( ) => {
36
36
test ( "should return a string with an URL of a places with the realm" , ( ) => {
37
37
const url = explorerUrl ( { base_position : "-9,-9" , world_name : null } , "dg" )
38
- expect ( url ) . toBe (
39
- "https://play.decentraland.org/play/?position=-9%2C-9&realm=dg"
40
- )
38
+ expect ( url ) . toBe ( "https://play.decentraland.org/?position=-9%2C-9&realm=dg" )
41
39
} )
42
40
test ( "should return a string with an URL of a places without the realm" , ( ) => {
43
41
const url = explorerUrl ( { base_position : "-9,-9" , world_name : null } )
44
- expect ( url ) . toBe ( "https://play.decentraland.org/play/ ?position=-9%2C-9" )
42
+ expect ( url ) . toBe ( "https://play.decentraland.org/?position=-9%2C-9" )
45
43
} )
46
44
test ( "should return a string with an URL of a world" , ( ) => {
47
45
const url = explorerUrl ( {
48
46
world_name : "paralax.dcl.eth" ,
49
47
base_position : "-9,-9" ,
50
48
} )
51
- expect ( url ) . toBe (
52
- "https://play.decentraland.org/play/?realm=paralax.dcl.eth"
53
- )
49
+ expect ( url ) . toBe ( "https://play.decentraland.org/?realm=paralax.dcl.eth" )
54
50
} )
55
51
} )
56
52
Original file line number Diff line number Diff line change @@ -51,7 +51,6 @@ function explorerPlaceUrl(
51
51
realm ?: string
52
52
) : string {
53
53
const target = new URL ( "/" , DECENTRALAND_URL )
54
- target . pathname = `/play/`
55
54
if ( place ?. base_position ) {
56
55
target . searchParams . set ( "position" , place . base_position )
57
56
}
@@ -65,7 +64,6 @@ function explorerPlaceUrl(
65
64
/** @private */
66
65
function explorerWorldUrl ( place : Pick < PlaceAttributes , "world_name" > ) : string {
67
66
const target = new URL ( "/" , DECENTRALAND_URL )
68
- target . pathname = `/play/`
69
67
70
68
if ( place ) {
71
69
target . searchParams . set ( "realm" , place . world_name ! )
You can’t perform that action at this time.
0 commit comments