"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.hardRedirect = void 0;
exports.hardRedirect = (path) => {
    if (!path.startsWith('/')) {
        throw new Error('Path must start with "/"');
    }
    window.location.href = `${window.location.origin}${path}`;
};
//# sourceMappingURL=hardRedirect.js.map