fcf.buildUrl() function
Package: fcf-framework-core
File: fcf-framework-core:fcf.js
Available from version: 2.0.2
Gathers a new URL from the original one by adding arguments and an anchor
Arguments
- Source URL
- An object containing additional GET query arguments
- A new anchor
Result
- New URL
Example:
let url = fcf.buildUrl("http://localhost:8080/index.html", {arg1: "value1"}, "ancor_value");
console.log(url);
Output:
http://localhost:8080/index.html?arg1=value1#ancor_value