File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,14 @@ function getNextInstance(currentInstanceUrl, instances) {
24
24
* @param {URL } url
25
25
*/
26
26
function protocolHost ( url ) {
27
- if ( url . username && url . password ) return `${ url . protocol } //${ url . username } :${ url . password } @${ url . host } `
27
+ url . pathname = url . pathname . replace ( / \/ $ / , '' ) ;
28
+ if ( url . username && url . password ) return `${ url . protocol } //${ url . username } :${ url . password } @${ url . host } ${ url . pathname } `
29
+
30
+ // workaround
28
31
if ( url . pathname == "/TekstoLibre/" && url . host . endsWith ( "github.io" ) )
29
- // workaround
30
32
return `${ url . protocol } //${ url . host } ${ url . pathname . slice ( 0 , - 1 ) } `
31
- return `${ url . protocol } //${ url . host } `
33
+
34
+ return `${ url . protocol } //${ url . host } ${ url . pathname } `
32
35
}
33
36
34
37
/**
@@ -221,5 +224,5 @@ export default {
221
224
addressToLatLng,
222
225
getQuery,
223
226
prefsEncoded,
224
- convertMapCentre
227
+ convertMapCentre,
225
228
}
You can’t perform that action at this time.
0 commit comments