const devPath = location.pathname.startsWith('/dev/') ? '/dev' : '';
const absoluteUrlVF = location.origin + devPath + '/apex/XXX';
const absoluteUrlS = location.origin + devPath + '/s/XXX';
const rootRelativeUrlVF = devPath + '/apex/XXX';
const rootRelativeUrlS = devPath + '/s/XXX';
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme