Skip to main content
Version: 1.x

Base tag configuration

Since version 0.8.0 micro-lc supports the definition of the base HTML tag.

To do this, in the index.html it imports a script using ./api/v1/microlc/configuration/micro-lc-base.js as src.

This script can be served using the general configuration API.

An example of the script's content can be the following:

var baseTag = document.querySelector('base')
baseTag.setAttribute('href', '/your-base-path/')
baseTag.setAttribute('target', '_blank')