Skip to content

Commit e3b25f7

Browse files
authored
Merge pull request #1815 from pierotofy/mobileopti
Fix 3D button URL in map view with single task
2 parents d661f4b + 6da3704 commit e3b25f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/static/app/js/components/SwitchModeButton.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ class SwitchModeButton extends React.Component {
3030
handleClick(){
3131
if (this.props.task){
3232
const target = this.props.type === 'mapToModel' ? '3d' : 'map';
33-
33+
3434
let url = this.props.public ?
35-
`../${target}/`
35+
`/public/task/${this.props.task.id}/${target}/`
3636
: `/${target}/project/${this.props.task.project}/task/${this.props.task.id}/`;
3737

3838
location.href = url;

0 commit comments

Comments
 (0)