news-catalyst / google-app-scripts

a collection of scripts for tinynews google docs add-ons
https://script.google.com/a/newscatalyst.org/d/1ILURq69o3cYUy6k1n1X6HwxdMfl9xWNhILYuZxgLfeblb3IR15WCMZSj/edit
1 stars 1 forks source link

Fixes the 'click to view' link #325

Closed jacqui closed 2 years ago

jacqui commented 3 years ago

Closes #321

Test using 👉 version 95 👈 in the script editor

There are a few variations on the link that gets displayed after publishing an article or page:

This PR, available at version 95 in the script editor, ensures that the 3 special pages and all other generic pages get the right URL for this link. About should be /en-US/about, for instance, while a custom History page would be /en-US/static/history.

Tested with Oaklyn & Test Diaryo on an article, an About page and a custom static page.