If you put https://example.com/member/show/1
on Twitter's OGP (press the share button to share images and URLs), the URL can be skipped.
The URL of Ravel does not fly well.(url={route('member.show', ['id'=>$id])}
does not work.Specifically, hashtags and text are displayed, but the URL is not displayed.
<a class="twitter-share-button" href="https://twitter.com/intent/tweet?text=share&url=https://example.com/member/show/1&hashtags=blog,share?"onclick="window.open(this.href, 'TWwindow', 'width=650, height=450, menubar=no, toolbar=no, scrollbars;">yurtles; Twitter;"
★ URL
https://example.com/member/show/1
<a class="twitter-share-button" href="https://twitter.com/intent/tweet?text=share&url=https://example.com/member/show/1&hashtags=blog,share?"onclick="window.open(this.href, 'TWwindow', 'width=650, height=450, menubar=no, toolbar=no, scrollbars;">yurtles; Twitter;"
★ url = {{route('member.show', ['id'=>$id])}}
Could someone please let me know?
laravel twitter
Do you have the declaration in href?
<a class="twitter-share-button" href={{route('member.show', ['id'=>$id])}onclick="window.open(this.href, 'TWwindow', 'width=650, height=450, menubar=no, tools);reverse=reverse="reversalts;"
If not, does the route have a name?
Route::get('/member/show'.'MemberController@show') ->name('member.show');
I think it's like this, but
I've never used the route as it is, so I don't know, but I think I can go with this
571 Who developed the "avformat-59.dll" that comes with FFmpeg?
570 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
908 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
581 PHP ssh2_scp_send fails to send files as intended
615 Uncaught (inpromise) Error on Electron: An object could not be cloned
© 2024 OneMinuteCode. All rights reserved.