RSSAmplifier

Royal Icing — Patrick George Wyndham Smith · Oct 1, 2020

Tips for concatenating URLs in JavaScript

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

Tips for concatenating URLs in JavaScript You might have a base URL from configuration, that you then concatenate with paths to produce a full URL. Say an API URL you fetch from. But should you provide the base URL with or without a trailing slash? e.g. Should you have https://api.example.org/ or https://api.example.org ? If you simply combine the strings together, you can end up with double…

Read on royalicing.com

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.