mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
proper segment url filtering
This commit is contained in:
@@ -6,5 +6,7 @@ export default function getUrlWithNetwork(_req: NextApiRequest, path: string) {
|
||||
return [
|
||||
appConfig.api.basePath,
|
||||
path,
|
||||
].filter(Boolean).join('');
|
||||
]
|
||||
.filter((segment) => segment !== '' && segment !== '/')
|
||||
.join('');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user