I am using Nano ID to generate unique strings to safely differentiate URLs automatically generated from product parameters, so where duplicates might occur. The order of parameters is strict (think "../manufacturer-model-type-whateverz-nanoid.html"), they are separated by hyphens. Nano ID uses hyphens in its alphabet/dictionary, which would break the 'hyphen logic', so I want to replace the Nano ID hyphens by equal signs. I think it is safe, as long as it does not interfere with ?key=values. So it ok or is there something else that would make me think twice? After all, equal signs could also be in the NanoID alphabet, but for some reason they aren't.
Replacing hyphen by equal sign in Nano IDs in URLs, aka, extra equal signs in URLs - are they safe?
368 Views Asked by marko-36 At
1
There are 1 best solutions below
Related Questions in JAVASCRIPT
- Angular Show All When No Filter Is Supplied
- Why does a function show up as not defined
- I count the time the user takes to solve my quiz using Javascript but I want the same time displayed on another page
- Set "More" "Less" font size
- Using pagination on a table in AngularJS
- How to sort these using Javascript or Jquery Most effectively
- how to fill out the table with next values in array with one button
- State with different subviews
- Ajax jQuery firing multiple time display event for the same result
- Getting and passing MVC Model data to AngularJS controller
- Disable variable in eval
- javascript nested loops waiting for user input
- .hover() seems to overwrite .click()
- How to sort a multi-dimensional array by the second array in descending order?
- How do I find the fonts that are not loading in a CORS situation ( MoovWeb )?
Related Questions in URL
- how to prepend www if the url string does not has www?
- Fetching URL vars into form and submitting to other page
- index.php url need to hide from homepage of php website
- Iframe not passing url parameters
- Object not found! The requested URL was not found on this server. PHP file not being accessed
- How can hide url value in php
- How parse makeHttpRequest with friendly url?
- Import .rda from URL into R
- Upload info that appear when share web link on Facebook
- Hiding param of struts.xml values in Struts 2
- PHP get public facing base directory from URL
- How to change URL form with GET method?
- how to get the URL from mainActivity to the second activity using intents?
- Using a dash in Struts 2 action name
- How do I load an HTTP URL with App Transport Security enabled in iOS 9?
Related Questions in NANOID
- Do repeated program executions increase chance of unique ID collisions
- ERR_REQUIRE_ESM when using nanoid
- Using Node shortid / nanoid and checking for collisions in DB
- Using nanoid in Vue fails with ''Missing file extension cjs"
- React Native - Unable to resolve module from @react-navigation. None of these files exist: node_modules/nanoid/non-secure/index.cjs
- Nanoid4 in codecept error [ERR_REQUIRE_ESM]: require() of ES Module
- How to import nanoid package from npm to Laravels?
- Unique ID for Sanity Studio's article
- Is using an UUID four times for length 4 the same as one time for length 16?
- Nanoid can't be used in react-native
- Package subpath './index.cjs' is not defined by \"exports\" in /var/task/node_modules/nanoid/package.json in AWS Lambda (nanoid)
- How to install nanoid in nodejs?
- Problem with generating random Id in react-native with Nanoid or UUID
- how to install nanoid in NestJS
- How to use nanoid without import
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
According to RFC1738:
It furthermore states that all other characters are considered unsafe and must be encoded. So don't use an equals sign instead of the hyphen.
Instead, use a custom alphabet for Nanoid that contains only letters and digits as described in nanoid Readme