UNPKG

@stencil/core

Version:

A Compiler for Web Components and Progressive Web Apps

1 lines 400 B
import{r as t,g as r}from"./p-fbbae598.js";import{A as s}from"./p-e2efe0df.js";class i{constructor(r){t(this,r)}componentWillLoad(){if(this.history&&this.root&&this.url)return this.history.replace((r=this.root,"/"==(t=this.url).charAt(0)&&"/"==r.charAt(r.length-1)?r.slice(0,r.length-1)+t:r+t));var t,r}get el(){return r(this)}}s.injectProps(i,["history","root"]);export{i as stencil_router_redirect}