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

How can the copy button on the +keyword page copy https links instead of http links? #894

Open
imayafei opened this issue Sep 19, 2023 · 3 comments
Assignees

Comments

@imayafei
Copy link

How can the copy button on the +keyword page copy https links instead of http links?

@imayafei
Copy link
Author

My domain already supports https, and I opened it with an https link.

@realodix realodix changed the title [REQUEST] How can the copy button on the +keyword page copy https links instead of http links? Sep 19, 2023
@realodix
Copy link
Owner

I cannot reproduce it on my side, because my environment does not support https.

Maybe this can help

<button title="{{__('Copy the shortened URL to clipboard')}}"
data-clipboard-text="{{$url->short_url}}"
class="btn-clipboard btn-icon-detail"
>
@svg('icon-clone') {{__('Copy')}}
</button>

- data-clipboard-text="{{$url->short_url}}" 
+ data-clipboard-text="{{url($url->short_url)}}"

Reference

@imayafei
Copy link
Author

Thank you for your reply, I tried your plan, it is invalid. I used another method, which is a little inelegant, but it works.

urlhub/app/Providers/AppServiceProvider.php

+ use Illuminate\Support\Facades\URL;
+ 

urlhub/app/Providers/AppServiceProvider.php

+ URL::forceScheme('https');

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