Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't have link in Embedded web app in Google site?

I'm trying to integrate a google script app deployed as a web app in a Google Site. The embedding feature works well and all seems good at first. But for some reason links don't work in the embedded view. I can't find any specific topics about this.

Google Script web app can be embedded every where I tried except in Google Site. And Google Site can embed every site that allow it except web app from google script.(couldn't figure out what you trying to say here...Cooper)

EDIT (2)

Turn out the problem can be resolved pretty quickly :

  1. Open https://site.google.com and create a new site

  2. Insert an "embed" choose the "embed code" option and copy past this code :

    Click Me!

  3. Now testing on preview or once the site publish the link can't be clicked

like image 484
Julien Maret Avatar asked May 27 '20 09:05

Julien Maret


People also ask

Can you embed a link in Google Sites?

Google Site embedTo embed content, choose “Embed,” then select “Embed Code” (instead of URL) and paste your embed code into the box. Choose “Next” to see a preview of your embedded content. Select “Insert” to add it.

How do I add an embedded link?

Select the text or picture that you want to display as a hyperlink. Press Ctrl+K. You can also right-click the text or picture and click Link on the shortcut menu. In the Insert Hyperlink box, type or paste your link in the Address box.

How do I get an embed link from a website?

Many sites offer embed codes on their pages for you to copy and paste. You'll typically see a button labeled Embed code or </>. This opens a text box with some code in it. For example, click the Share button for a video on Vimeo to see the embed code in the share dialog.


1 Answers

You have to specified the target propriety. Google script dont apply it by default so use this code :

<!DOCTYPE html>
<html>
 <body>
   <div>
     <a target="_self" href="http://google.com">Click Me!</a>
   </div>
 </body>
</html>
like image 151
Julien Maret Avatar answered Oct 09 '22 02:10

Julien Maret