NASA-AMMOS / NASA-AMMOS/MMGIS

[New Feature]: Add duplicate path code as variable in mmgisglobal global variable

Open
#663 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.