Default url per profile

I can set the defaultUrl in the config.yaml so that the notebook loads, for example
defaultUrl: “/lab/workspaces/example-workspace/tree/path/to/notebook”

However I want this to change depending on the profile that is selected. This doesn’t work when put under kubespawner override. Is there any way to get this functionality?