Fixed route changes not using getUrl causing invalid url to be used when
using pathPrefix, renamed basePath to prefixPath, updated how getUrl gets the prefixPath to prevent the need for rebuilding when its changed now just requires restart
This commit is contained in:
@@ -18,7 +18,7 @@ class k extends Component {
|
||||
headers: { Authorization: getJwt() },
|
||||
method: 'DELETE',
|
||||
}).catch(({ message }) => ({ ok: false, message }))
|
||||
if (del.ok) Router.push('/')
|
||||
if (del.ok) Router.push('/', getUrl('/'))
|
||||
else {
|
||||
if (!del.message) {
|
||||
const data = await del.json()
|
||||
|
||||
Reference in New Issue
Block a user