MagiCircles / MagiCircles/SchoolIdolAPI
Twitter Card Image URL Malformed
- Dominant language
- Python
- Stars
- 151
- Forks
- 29
- PR merge metrics
- No merged PRs in 30d
Description
Current template for the `twitter:image` meta tag incorrectly prepends `http://schoolido.lu` ahead of the actual path to the image (e.g. an AWS url)
See:
[web/templates/base.html, line 24](https://github.com/SchoolIdolTomodachi/SchoolIdolAPI/blob/d19ca35ace1aca3316c9c68c7edbd4b7ae67d5d2/web/templates/base.html#L24):
```
```
+
[web/templates/cards.html, line 14](https://github.com/SchoolIdolTomodachi/SchoolIdolAPI/blob/d19ca35ace1aca3316c9c68c7edbd4b7ae67d5d2/web/templates/cards.html#L14):
```
{% block shareimagetwitter %}{% if single %}http://schoolido.lu{{ single|imageurl:'card_idolized_image' }}{% else %}http://schoolido.lu/static/cards_screenshot.png{% endif %}{% endblock %}
```
will yield
```
```
(as an example)
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with web/templates/base.html at line 24 and web/templates/cards.html at line 14, then trace the imageurl output used for card images. Render both the default and single-card cases and verify that twitter:image contains a valid absolute URL without a duplicated host prefix.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- django, python
- Domain
- web-dev
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100