az-digital / az_quickstart

UArizona's web content management system built with Drupal 10.
https://quickstart.arizona.edu
GNU General Public License v2.0
30 stars 20 forks source link

Add demo content to test link behavior #3118

Open trackleft opened 9 months ago

trackleft commented 9 months ago

Recently we added external link behavior, but without tests. I propose we add something that stands as a check before merging anything that could affect external link behavior in the future.

I found this content on quickstart.arizona.edu that could be used.


<div class="node__content clearfix">
    <div class="field field--name-field-az-main-content field--type-entity-reference-revisions field--label-hidden field__items">
        <div class="field__item">
            <div class="mb-10 paragraph paragraph--type--az-text paragraph--view-mode--default">
                <div class="clearfix text-formatted field field--name-field-az-text-area field--type-text-long field--label-hidden field__item">
                    <p>
                        <strong>These should all open new browser tabs:</strong>
                    </p>
                    <ul>
                        <li>
                            <a href="https://events.trellis.arizona.edu/f44lNu67/5a3U3nIwLYK?_gl=1*1ncy4ls*_ga*OTMyMDU0ODAzLjE2OTE0MjM0NjM.*_ga_7PV3540XS3*MTY5NTY3MDQ4NC4zNS4xLjE2OTU2NzA0OTUuNDkuMC4w" target="_blank">Trellis event link</a>
                        </li>
                        <li>
                            <a href="https://docs.google.com/document/d/1hYZIm553E7gO_bCxr1K7l0NN_v137k6jNlkUyyzCroY/edit?usp=sharing" target="_blank">Google doc</a>
                        </li>
                        <li>
                            <a href="https://arizona.box.com/s/wasg24vebx58n5sv13n9zg68aox59bh0" target="_blank">Box link</a>
                        </li>
                        <li>
                            <a href="https://emailarizona-my.sharepoint.com/:x:/g/personal/danahertzberg_arizona_edu/EcyTb-u8uGpHnmeogdAYRqUBnVZjOPKMxX5v5OB6XuA6Sw?e=KTFRGx" target="_blank">OneDrive link</a>
                        </li>
                        <li>
                            <a href="https://www.dropbox.com/scl/fi/8wcc4shset2qkbt3qc6wh/21-UArizona-Dynamic-Template.pptx?rlkey=ms6028rbz9m2nrje7n907o9fg&amp;dl=0" target="_blank">Dropbox</a>
                        </li>
                        <li>
                            <a href="https://github.com/az-digital/az_quickstart/files/12894683/Sample.Document.pdf">Sample Document.pdf</a><br>
                            <br>
                            &nbsp;
                        </li>
                    </ul>
                    <p>
                        <strong>These should open in same browser tab:</strong>
                    </p>
                    <ul>
                        <li>
                            <a href="http://Google.com">Google.com</a>
                        </li>
                        <li>
                            <a href="http://NYTimes.com">NYTimes.com</a>
                        </li>
                        <li>
                            <a href="https://qs29alpha1-azs-quickstart.pantheonsite.io/node/1">Home</a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>```
danahertzberg commented 9 months ago

Do the links on this page count? https://demo.quickstart.arizona.edu/pages/text-background

trackleft commented 9 months ago

Those can be used as well, but I am specifically adding external links in order to display the settings in this PR https://github.com/az-digital/az_quickstart/pull/2833

danahertzberg commented 9 months ago

Ah smart. Thank you for clarifying.