Make util for url
- Dominant language
- TypeScript
- Stars
- 4
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Description
so far a lot of code has forcefully hardcoded `rmrk` but it will fail for other impl like statemine or bsx.
It would be nice to have a util for url
```ts
function toUrl(prefix: string, route: 'user' | 'nft' | 'col', isDetail = false);
```
Originaly posted in:
- https://github.com/kodadot/nft-gallery/issues/2986
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the hardcoded `rmrk` URL construction across the packages and comparing the user, NFT, and collection routes. The work is done when a shared TypeScript utility supports the stated prefix, route, and detail parameters and the relevant callers no longer force a single implementation prefix.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100