kkartch0 / obsidian-gospel-study

An Obsidian plugin that allows for automatic importing and linking of scripture verses and other paragraphs such as those from a conference talk.
1 stars 1 forks source link

Handle missing text when pasting link for quote of the day / verse of the day #3

Closed kkartch0 closed 8 months ago

kkartch0 commented 8 months ago

image

The share link for verse of the day and quote of the day end up with a weird format different than the link when sharing the verse directly. It seems to be a bug in the Gospel Library app. Some example links include:

https://www.churchofjesuschrist.org/study/general-conference/2023/10/13daines?id=p33%23p33&lang=eng

https://www.churchofjesuschrist.org/study/scriptures/bofm/2-ne/10?id=24%23p24&lang=eng

Typical format is the following:

https://www.churchofjesuschrist.org/study/general-conference/2023/10/13daines?id=p33&lang=eng#p33

The difference is in the order of the URL parameters. In addition, there is the encoded value for "#" (%23) instead of the literal "#".

After doing some testing it seems the main issue is the "%23" instead of literal "#" and the id=24 instead of id=p24.

kkartch0 commented 8 months ago

https://www.churchofjesuschrist.org/study/general-conference/2023/10/13daines?id=p33%23p33&lang=spa

Outputs: image

With lang in front:

image