Duplicate urls in javascript api

Somehow I was using javascript to make multiple shorturls using the same original url but with diff keyword/titles. I was using the yourls.js script.

I then go to the admin page on my site and try to make another entry with the same url but diff keyword/titles and it would not let me. It says ‘nameofurl…already exists in database’. I am not sure what is going on. How would I debug this?

Ok, looking down the forum, my config says
define( ‘YOURLS_UNIQUE_URLS’, true );
which means the long urls should be all unique. Somehow the javascript wasn’t respecting this.

Although if I restart the javascript page I have to create multiple shorturls then it returns the first original shorturl. I think I have to change this config entry.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.