Formatting url to search for specific verses

Discussions about the Notes and Journal tool on LDS.org. This includes the Study Toolbar as well as the scriptures and other content on LDS.org that is integrated with Notes and Journal.
corwinslack
Member
Posts: 54
Joined: Tue Nov 22, 2011 12:34 pm

Re: Formatting url to search for specific verses

#11

Post by corwinslack »

Here is the answer

Https://www.lds.org/scriptures/search?l ... 20-22%2C24

The spaces in the string 1 Cor 1:20-22,24 need to be replaced with +. The colon needs to be replaced with %3A. And the comma needs to be replaced with %2C

- (dash) apparently does not need to be replaced.

Thanks for the nudge. It helped me go the right direction. The Inspector in Google Chrome is fantastic. I wish I understood 1% of it.
corwinslack
Member
Posts: 54
Joined: Tue Nov 22, 2011 12:34 pm

Re: Formatting url to search for specific verses

#12

Post by corwinslack »

Here is what comes after the ?

lang=eng&query=1+Cor+1%3A20-22%2C24
corwinslack
Member
Posts: 54
Joined: Tue Nov 22, 2011 12:34 pm

Re: Formatting url to search for specific verses

#13

Post by corwinslack »

This seems to work as well but I need to test it.

lang=eng&query=1%20Cor%201:20-21,24
corwinslack
Member
Posts: 54
Joined: Tue Nov 22, 2011 12:34 pm

Re: Formatting url to search for specific verses

#14

Post by corwinslack »

Tested and will continue to test. A lot of encode url encode methods will return the second version if 1 Cor 1:20-21,24 is entered.

(Sorry about the inconsistency over verse 22 and 22. It is not significant).
banfordm
New Member
Posts: 1
Joined: Tue Oct 29, 2019 9:40 am

Re: Formatting url to search for specific verses

#15

Post by banfordm »

When I click on

https://www.lds.org/scriptures/nt/1-cor ... ng=eng#p21

my web browser changes the address to

https://www.churchofjesuschrist.org/stu ... 1?lang=eng,

which eliminates the blue bar marking specific scriptures and the scroll feature. If I try and manually type in the "verse=21-25" and then proceed my browser corrects it to the latter link. How do I stop my browser from changing the link?
User avatar
sbradshaw
Community Moderators
Posts: 6245
Joined: Mon Sep 26, 2011 9:42 pm
Location: Utah
Contact:

Re: Formatting url to search for specific verses

#16

Post by sbradshaw »

This looks like a bug – I'd recommend sending it as feedback. There is a newer format for URLs – this is what the Gospel Library app outputs when sharing:
https://www.churchofjesuschrist.org/stu ... ng=eng#p21
but that doesn't work either (it still redirects).
Samuel Bradshaw • If you desire to serve God, you are called to the work.
scrupply
New Member
Posts: 2
Joined: Sat Aug 07, 2021 9:02 am

Re: Formatting url to search for specific verses

#17

Post by scrupply »

Is there a reason that you do not have a share icon that would then link to a modal window where the visitor could then choose the verses and how they want to share it and then hit go or copy or whatever?

This is very simple and would make sharing the gospel sooo mich easier.
User avatar
sbradshaw
Community Moderators
Posts: 6245
Joined: Mon Sep 26, 2011 9:42 pm
Location: Utah
Contact:

Re: Formatting url to search for specific verses

#18

Post by sbradshaw »

scrupply wrote:Is there a reason that you do not have a share icon that would then link to a modal window where the visitor could then choose the verses and how they want to share it and then hit go or copy or whatever?

This is very simple and would make sharing the gospel sooo mich easier.
I'm not sure exactly what you're looking for, but you can already choose what to share and where to share it – just select the text you want to share, then tap the Share button on the annotation menu that appears. It will give you options for where to share to.
Samuel Bradshaw • If you desire to serve God, you are called to the work.
scrupply
New Member
Posts: 2
Joined: Sat Aug 07, 2021 9:02 am

Re: Formatting url to search for specific verses

#19

Post by scrupply »

Anyone know why the top link, when emailed by the management email, does not work. I am getting a 404 error.
Attachments
195138AA-135A-46B8-A61D-0F593FF9F2BE.png
(258.89 KiB) Not downloaded yet
Post Reply

Return to “Notes and Journal, and Online Scriptures”