Discussions
How to customize short url after the domain?
Here is the html code I have so far:
<!doctype html>
<input id="box">
<button onclick="makelink(document.getElementById('box').value)">Make THAT Link</button>
<div id="output"></div>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script>
var data;
function makelink(q) {
$.ajax({
url: "https://api.rebrandly.com/v1/links/new?apikey=<REDACTED>&destination=" + q + "&domain[fullName]=beehired.tech",
success: function (rawdata) {
var rawstring = JSON.stringify(rawdata);
data = JSON.parse(rawstring);
document.getElementById("output").innerHTML = "<a href='https://" + data.shortUrl + "' target='_blank'>" + data.shortUrl + "</a>";
}
})
};
</script>
How can I change/add to this code so that a link that is being shortened to beehired.tech/jxk would instead be shortened to beehired.tech/jobfair01. I would like to customize the portion that comes after the "/". Thanks for any help you can provide.
Posted by Tim Kelly over 4 years ago
Login Credential During Redirect to NextDoor
I've defined the following rebrandly map:
https://plf.pet/safe =>
https://nextdoor.com/p/QnPDft2PgQzZ?view=detail&utm_source=embed
This is intended to allow nextdoor subscribers to use a shortened link to access a target page within Nextdoor. The technique works when running nextdoor within a webbrowser, but fails when running within the nextdoor application from the appstore. It appears the nextdoor login credential maybe is not being passed by the nextdoor app.
Without getting into rebrandly api programming, is there some config setting that rebrandly uses to control default behavior associated with login credentials?
Posted by Tony Bryan over 1 year ago
SSL for my custom domain
I have setup a free Rebrandly account a few days back, but I see that SSL is still not enabled. Can you please help?
Posted by Prashanth S about 4 years ago
UTMs Truncated After First '&'. How to Resolve?
I'm creating shortened links via the API. UTMs after the first '&' are being stripped off in the response. I've tested using Postman, in the app I'm creating (NodeJS), and on the https://developers.rebrandly.com/reference#create-link-url "try it' feature.
Example URL:
https://something.org?utm_source=slack&utm_medium=social&utm_campaign=something&utm_context=anotherthing
What comes back (after shortened URL is clicked):
https://something.org?utm_source=slack
this gets stripped off ---> &utm_medium=social&utm_campaign=something&utm_context=anotherthing
Posted by Joshua over 3 years ago
Delete all links in JavaScript
In web
Posted by Anonymus over 3 years ago
NET::ERR_CERT_AUTHORITY_INVALID
Your connection is not private
Attackers might be trying to steal your information from checkersinsurance.market (for example, passwords, messages, or credit cards). Learn more
NET::ERR_CERT_AUTHORITY_INVALID
To get Chrome’s highest level of security, turn on enhanced protection
I read another thread and they were saying that this happens shortly after the domain has been verified, but this one was verified over two weeks ago. Please help
Posted by Frank over 2 years ago
link works on PC but not in Mobile SMS
I have this link https://graphic.biz/reviewsa that works perfectly on PC and redirects to https://g.page/r/CdyU0ZJnwdahEAE/review
But when I send it via SMS in android with Google stock message app, it only redirect to my home page of https://graphicsignhire.com.au/. Not https://g.page/r/CdyU0ZJnwdahEAE/review
Posted by Robin about 3 years ago
HTTPS / SSL still not set for my domain, even after few hours
Hello,
I set my domain scgupta.me a few hours back, but "Https (SSL)" status is still "SSL Certificate not active yet."
If I understood correctly, all domains in all plans, a FREE SSL certificate offered by Let's Encrypt authority is set automatically.
Do I need to do something? Can you please help setting SSL so that I can create and share https links?
Thanks.
Posted by Satish Gupta about 4 years ago
Node.js Snipped for Axios
Can someone edit the - Node.js - "API for custom short URLs - Code snippet", that I can use it with axios?
let request = require("request");
let linkRequest = {
destination: "https://www.youtube.com/channel/UCHK4HD0ltu1-I212icLPt3g",
domain: { fullName: "rebrand.ly" }
//, slashtag: "A_NEW_SLASHTAG"
//, title: "Rebrandly YouTube channel"
}
let requestHeaders = {
"Content-Type": "application/json",
"apikey": "YOUR_API_KEY",
"workspace": "YOUR_WORKSPACE_ID"
}
request({
uri: "https://api.rebrandly.com/v1/links",
method: "POST",
body: JSON.stringify(linkRequest),
headers: requestHeaders
}, (err, response, body) => {
let link = JSON.parse(body);
console.log(`Long URL was ${link.destination}, short URL is ${link.shortUrl}`);
});
Posted by Peter21 over 2 years ago
Temporary Links
Since I don't need links to be available more than a few days, is there any way of creating temporary links? Or delete the links based on the time of creation?
Posted by Leonard Tudorache almost 5 years ago