If I want to redirect http://url > https:/url like: http://example.com?param=value#bookmark > https://example.com?param=value#bookmark
I see how I can redirect with javascript but the method leaves out the ?params and #bookmark.
What's a good way to redirect and retain the whole URL?