Skip to content

Commit

Permalink
fix: redirections with basename (#2990)
Browse files Browse the repository at this point in the history
  • Loading branch information
Melisa Anabella Rossi authored Nov 28, 2023
1 parent 69c2fa9 commit eb67066
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as React from 'react'
import { Link } from 'react-router-dom'
import { Button, ModalContent, ModalNavigation } from 'decentraland-ui'
import Modal from 'decentraland-dapps/dist/containers/Modal'
import { t } from 'decentraland-dapps/dist/modules/translation/utils'
Expand Down Expand Up @@ -131,8 +132,8 @@ export default class WorldsYourStorageModal extends React.PureComponent<Props, S
</div>
<div>
<Button
as="a"
href={locations.claimENS()}
as={Link}
to={locations.claimENS()}
primary
target="_blank"
rel="noopener noreferrer"
Expand Down
5 changes: 3 additions & 2 deletions src/components/Preview/Preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import * as React from 'react'
import { DropTarget } from 'react-dnd'
import Lottie from 'lottie-react'
import { config } from 'config'
import { Link } from 'react-router-dom'

import { t } from 'decentraland-dapps/dist/modules/translation/utils'
import Modal from 'decentraland-dapps/dist/containers/Modal'
Expand Down Expand Up @@ -125,10 +126,10 @@ class Preview extends React.Component<Props & CollectedProps> {
<Modal name="SceneEditorErrorModal" size="tiny">
<Modal.Content>{t('editor_preview.loading_unity_error', { br: <br /> })}</Modal.Content>
<Modal.Actions>
<Button secondary as="a" href={locations.sceneDetail(project.id)}>
<Button secondary as={Link} to={locations.sceneDetail(project.id)}>
{t('global.back')}
</Button>
<Button primary as="a" href={locations.sceneEditor(project.id)}>
<Button primary as={Link} to={locations.sceneEditor(project.id)}>
{t('global.reload')}
</Button>
</Modal.Actions>
Expand Down

1 comment on commit eb67066

@vercel
Copy link

@vercel vercel bot commented on eb67066 Nov 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

builder – ./

builder-decentraland1.vercel.app
builder-git-master-decentraland1.vercel.app

Please sign in to comment.