diff --git a/frontend/src/lib/components/AuthorizedUrlList/authorizedUrlListLogic.ts b/frontend/src/lib/components/AuthorizedUrlList/authorizedUrlListLogic.ts index 20d0811578258..8cc977e20f2ae 100644 --- a/frontend/src/lib/components/AuthorizedUrlList/authorizedUrlListLogic.ts +++ b/frontend/src/lib/components/AuthorizedUrlList/authorizedUrlListLogic.ts @@ -241,7 +241,7 @@ export const authorizedUrlListLogic = kea([ [] as string[], { setAuthorizedUrls: (_, { authorizedUrls }) => authorizedUrls, - addUrl: (state, { url }) => state.concat([url]), + addUrl: (state, { url }) => (!state.includes(url) ? state.concat([url]) : state), updateUrl: (state, { index, url }) => Object.assign([...state], { [index]: url }), removeUrl: (state, { index }) => { const newUrls = [...state] diff --git a/frontend/src/lib/components/IframedToolbarBrowser/IframedToolbarBrowser.tsx b/frontend/src/lib/components/IframedToolbarBrowser/IframedToolbarBrowser.tsx index aa32b83e36ee7..2013b1a5e32c0 100644 --- a/frontend/src/lib/components/IframedToolbarBrowser/IframedToolbarBrowser.tsx +++ b/frontend/src/lib/components/IframedToolbarBrowser/IframedToolbarBrowser.tsx @@ -40,7 +40,7 @@ export function IframedToolbarBrowser({ }): JSX.Element | null { const logic = iframedToolbarBrowserLogic({ iframeRef, userIntent: userIntent }) - const { browserUrl } = useValues(logic) + const { browserUrl, initialPath } = useValues(logic) const { onIframeLoad, setIframeWidth } = useActions(logic) const { width: iframeWidth } = useResizeObserver({ ref: iframeRef }) @@ -55,7 +55,7 @@ export function IframedToolbarBrowser({