Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting a static URL without typing it after the prefix #239

Closed
snaildos opened this issue Nov 15, 2023 · 7 comments
Closed

Setting a static URL without typing it after the prefix #239

snaildos opened this issue Nov 15, 2023 · 7 comments

Comments

@snaildos
Copy link

I want to know how I can set a URL for example https://google.com without writing it after the prefix.

@snaildos
Copy link
Author

I've tried intercepting via middleware, however that only works when a URL is written after the prefix, not just the prefix. I've also tried getting express to redirect without updating the URL, but that also caused issues with images not loading.
Hope you have some advice.

@nfriedly
Copy link
Owner

Hey, unfortunately the URL structure is really baked in to the current design of unblocker. That's something I started to address in the v3 branch, but I haven't made much progress on that recently. (I've only been able to put significant amounts of work in when I have a consulting job that uses it, and I haven't had any of those recently.)

@snaildos
Copy link
Author

Hey, unfortunately the URL structure is really baked in to the current design of unblocker. That's something I started to address in the v3 branch, but I haven't made much progress on that recently. (I've only been able to put significant amounts of work in when I have a consulting job that uses it, and I haven't had any of those recently.)

Hey, thanks for the reply. Appreciated. So there is no way I can set the default URL to be example.com without it showing up in the URL bar? or any other method you may know of?

@nfriedly
Copy link
Owner

It will require fairly involved code changes to unblocker.

@snaildos
Copy link
Author

It will require fairly involved code changes to unblocker.

I understand, but is there nothing you can recommend to me that I can do? Like using another proxy ontop of node-unblocker or something?

@nfriedly
Copy link
Owner

Well, I'm not sure another proxy in front of unblocker would work, but you could try out another proxy entirely (https://github.com/nfriedly/node-unblocker/wiki/Alternative-Projects lists a few), or you could try and make the changes to unblocker. The work is started in the v3 branch, but it's not really in a functioning state there.

@snaildos
Copy link
Author

Cheers for the reply mate. Got it all sorted, love your work a ton. Resolved by putting another middle-end in front of it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants