preview url in input type slug is wrong when switching sites in a multisite installation

Description

The preview url of the slug field is wrong when switching sites in the site manager.

Steps to reproduce:
Logged in on www.a.com
Switching in the site selector to site www.b.com
Editing a sitetree page
preview url of field slug shows www.a.com/slug
should be www.b.com/slug

Environment

None

Assignee

Unassigned

Reporter

Michael Hnat

Labels

None

Accepted

None

Affects versions

Priority

Medium
Configure