Closed tech-codivores closed 1 year ago
Hey @tech-codivores
As far as I understand the srcdoc
is not providing a proper window.location
as per spec this about:srcdoc
seems to be unresolveable. It seems not be a bug.
As you said that is really specific usecase. This could be a challenge to resolve as alone inside router.ts I find 10 occurences of window.location.
Hi @ajnsn, and thank you for your reply. The discussion started on the Inertia Discord with @RobertBoes and @claudiodekker who asked me to open an issue. Would this be acceptable if I let them decide the follow up to this question?
Hey @tech-codivores,
Thanks again for opening this issue! As mentioned previously / for reference of others, we're going to leave this one for later, as it is technically bug (but doesn't have the highest priority right now given how rare it is to use Inertia this way)
Hey! Thanks so much for your interest in Inertia.js and for sharing this issue/suggestion.
In an attempt to get on top of the issues and pull requests on this project I am going through all the older issues and PRs and closing them, as there's a decent chance that they have since been resolved or are simply not relevant any longer. My hope is that with a "clean slate" me and the other project maintainers will be able to better keep on top of issues and PRs moving forward.
Of course there's a chance that this issue is still relevant, and if that's the case feel free to simply submit a new issue. The only thing I ask is that you please include a super minimal reproduction of the issue as a Git repo. This makes it much easier for us to reproduce things on our end and ultimately fix it.
Really not trying to be dismissive here, I just need to find a way to get this project back into a state that I am able to maintain it. Hope that makes sense! ❤️
Versions:
@inertiajs/inertia
version: 0.10.1@inertiajs/inertia-vue3
version: 0.5.2vue
version: 3.2.26vite
version: 2.7.2Describe the problem:
Rendering an Inertia page in an iframe through
srcdoc
attribute triggers an error in thehrefToUrl
function. As the location isabout:srcdoc
, it fails building a valid URL object when Inertia creates a visit.I know it is a really specific usecase that should not be recommended, but we use Laravel with Twill package (CMS with admin interface) that offers a preview feature using iframe with srcdoc.
Steps to reproduce:
srcdoc
attribute