[New Feature]: Add duplicate path code as variable in mmgisglobal global variable
Open
Nobody has claimed this yet.
backlog
enhancement
- Dominant language
- JavaScript
- Stars
- 232
- Forks
- 77
- Avg merge
- 3d 6h
- Merged PRs (30d)
- 17
Description
Checked for duplicates
Yes - I've already checked
Alternatives considered
Yes - and alternatives don't suffice
Related problems
No response
Describe the feature request
We really like using the following lines for creating paths. @tariqksoliman suggested this could be added as a variable in the mmgisglobal global variable.
`${window.location.origin}${(
window.location.pathname || ''
).replace(/\/$/g, '')}/
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Search the JavaScript codebase for mmgisglobal and the repeated window.location path expression. Add the requested duplicate-path value to that global, then verify that it produces the same origin-and-path result shown in the issue and can be used by the relevant callers.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100