mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Merge pull request #7985 from WilliamHolden/remove_colon_no_port
Only show colon when a port exists in URL
This commit is contained in:
@@ -170,7 +170,8 @@ export default {
|
||||
return this.item.published ? "accessible via link and published" : "accessible via link";
|
||||
},
|
||||
item_url() {
|
||||
return `${window.location.protocol}//${window.location.hostname}:${window.location.port}${getAppRoot()}${
|
||||
const port = window.location.port ? `:${window.location.port}` : "";
|
||||
return `${window.location.protocol}//${window.location.hostname}${port}${getAppRoot()}${
|
||||
this.item.username_and_slug
|
||||
}`;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user