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
- Using Puppeteer to scrape a public API only when the data changes
- inline SVG text (js)
- An array of images and a for loop display the buttons. How to assign each button to open its own block by name?
- Storing the preferred font-size in localStorage
- Simple movie API request not showing up in the console log
- Authenticate Flask rest API
- Deploying sveltekit app with gunjs on vercel throws cannot find module './lib/text-encoding'
- How to request administrator rights?
- mp4 embedded videos within github pages website not loading
- Scrimba tutorial was working, suddenly stopped even trying the default
- In Datatables, start value resets to 0, when column sorting
- How do I link two models in mongoose?
- parameter values only being sent to certain columns in google sheet?
- Run main several times of wasm in browser
- Variable inside a Variable, not updating
Related Questions in URL
- how do I change a URL with form to include additional selection
- Blog Post URL In flutter Web
- Why does RFC 3986 (URI generic syntax) declare the "host" component to be case-insensitive when the syntax rules show it to be case-sensitive?
- Non-Expiring Direct Link Like When Clicked It Will Download Without Landing Any Page
- Curl URL syntax for uploading files
- Send a json command to an app at a known port/address?
- How do I resolve this error ? "ERR_TOO_MANY_REDIRECTS"
- I'm using the googlesearch library in Colab, but I can't import my websites to a list. How can I do that?
- Sharepoint document library URL Rewrite
- Apache2 redirection results in wrong URL
- Vue / Vitest : issues in snapshots with dynamic import assets URL
- How to redirect to the landing page when the domain name is searched?
- find out filename from URL
- How do I ping a website to see if its valid before entering?
- Unable to download CSV file from web URL with runtime using python
Related Questions in NANOID
- ERR_REQUIRE_ESM when using nanoid
- TypeORM incorrectly tries to save embedded entities first
- Unique ID for Sanity Studio's article
- Generate unique string ID with nanoid
- How to write log has token trace per request
- Replacing hyphen by equal sign in Nano IDs in URLs, aka, extra equal signs in URLs - are they safe?
- Problem with generating random Id in react-native with Nanoid or UUID
- how to install nanoid in NestJS
- Nanoid library not working as a thingsboard resource
- How to use nanoid without import
- Nanoid4 in codecept error [ERR_REQUIRE_ESM]: require() of ES Module
- React Native - Unable to resolve module from @react-navigation. None of these files exist: node_modules/nanoid/non-secure/index.cjs
- Cannot integrate third party tools with TectCafe Studio
- How to install nanoid in nodejs?
- Package subpath './index.cjs' is not defined by \"exports\" in /var/task/node_modules/nanoid/package.json in AWS Lambda (nanoid)
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 # Hahtags
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