Skip to content

Add new url utility: relativePathToAbsolute

Himanshu Kapoor requested to merge himkp-url-utilities into master

What does this MR do?

In preparation of fixing of #31810 (closed) in MR !31540 (merged), there is requirement to introduce some new URL utilities.

  • isAbsoluteOrRootRelative is now broken down into two functions isAbsolute and isRootRelative.
  • relativePathToAbsolute - new function introduced.

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Himanshu Kapoor

Merge request reports