CN106970977A - A kind of webpage redirects processing method and processing device - Google Patents

A kind of webpage redirects processing method and processing device Download PDF

Info

Publication number
CN106970977A
CN106970977A CN201710191253.5A CN201710191253A CN106970977A CN 106970977 A CN106970977 A CN 106970977A CN 201710191253 A CN201710191253 A CN 201710191253A CN 106970977 A CN106970977 A CN 106970977A
Authority
CN
China
Prior art keywords
redirected link
webpage
redirected
link
intended application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710191253.5A
Other languages
Chinese (zh)
Inventor
叶振荣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Music Entertainment Technology Shenzhen Co Ltd
Original Assignee
Tencent Music Entertainment Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Music Entertainment Technology Shenzhen Co Ltd filed Critical Tencent Music Entertainment Technology Shenzhen Co Ltd
Priority to CN201710191253.5A priority Critical patent/CN106970977A/en
Publication of CN106970977A publication Critical patent/CN106970977A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9558Details of hyperlinks; Management of linked annotations

Abstract

Processing method and processing device is redirected the embodiment of the invention discloses a kind of webpage, wherein method includes:When Webpage, which is loaded, to be completed, terminal receives jump instruction, and determines redirected link according to the jump instruction;The intended application that the default redirected link form of the terminal monitoring and the form of the redirected link match;The terminal jumps to the corresponding default interface of the redirected link by the intended application, wherein, the Webpage includes any of external web page and embedded webpage.Using the embodiment of the present invention, it can realize that external web page and embedded webpage are jumped in the interface corresponding to redirected link in time.

Description

A kind of webpage redirects processing method and processing device
Technical field
Processing method and processing device is redirected the present invention relates to technical field of data processing, more particularly to a kind of webpage.
Background technology
With the development of computer technology, the application software that terminal is installed is more and more, be related to life, amusement, go on a journey and The each side such as study, the life given people brings great convenience.In practice, it has been found that user is using these application software When, generally require to be redirected to open application in time between different applications.For example, terminal opens a net in a browser , it is necessary to jump to the interface of a certain specified application after page, wherein, the webpage is external web page for this specifies application; Or terminal opens a webpage, it is necessary to the interface jumped in another application is handled in some application, wherein, should Webpage is the embedded webpage of the application for a certain application inside.Therefore, external web page and embedded net how to be realized Page freely jumps to the problem of interface corresponding to redirected link is a urgent need to resolve.
The content of the invention
The embodiment of the present invention provides a kind of webpage and redirects processing method, can realize that external web page and embedded webpage are jumped in time Go in the interface corresponding to redirected link.
In order to solve the above-mentioned technical problem, processing method, methods described are redirected the embodiments of the invention provide a kind of webpage Including:
When Webpage, which is loaded, to be completed, jump instruction is received, redirected link is determined according to the jump instruction;
The intended application that preset monitored redirected link form and the form of the redirected link match;
The corresponding default interface of the redirected link is jumped to by the intended application, wherein, the Webpage bag Include any of external web page and embedded webpage.
Correspondingly, the embodiment of the present invention additionally provides a kind of webpage and redirects processing unit, and described device includes:
Processing module, for when Webpage loads completion, receiving jump instruction, determines to jump according to the jump instruction Turn link;
Module is monitored, the target that the form for preset monitored redirected link form and the redirected link matches should With;
Jump module, for jumping to the corresponding default interface of the redirected link by the intended application, wherein, institute Stating Webpage includes any of external web page and embedded webpage.
Implement the embodiment of the present invention, have the advantages that:
The embodiment of the present invention by Webpage load complete when, jump instruction is received first, and according to jump instruction Redirected link is determined, the target that then preset monitored redirected link form and the form for the redirected link determined match should With, default interface corresponding with the redirected link determined is jumped to finally by intended application, wherein, Webpage includes outer Any of portion's webpage and embedded webpage, so as to realize that external web page and embedded webpage jump to redirected link institute in time In corresponding interface.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the schematic flow diagram that a kind of webpage provided in an embodiment of the present invention redirects processing method;
Fig. 2 is the schematic flow diagram that another webpage provided in an embodiment of the present invention redirects processing method;
Fig. 3 is the schematic block diagram that a kind of webpage provided in an embodiment of the present invention redirects processing unit;
Fig. 4 is the schematic block diagram that another webpage provided in an embodiment of the present invention redirects processing unit;
Fig. 5 is a kind of schematic block diagram of terminal provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described.
The embodiment of the present invention discloses a kind of webpage based on Android operation system and redirects processing method and processing device, can Realize that external web page and embedded webpage are jumped in the interface of a certain application in time.Describe in detail individually below.
Referring to Fig. 1, Fig. 1 is the schematic flow diagram that a kind of webpage provided in an embodiment of the present invention redirects processing method, described Webpage redirects processing method can be by smart mobile phone (such as Android phone), palm PC, notebook computer, tablet personal computer, shifting Dynamic internet device (Mobile Internet Devices, MID) etc. has function of surfing the Net and the intelligence of webpage turn function Terminal is realized.A kind of webpage as shown in Figure 1, which redirects processing method, may include following steps:
S101, when the terminal webpage page load complete when, the terminal receives jump instruction, and according to the jump instruction Determine redirected link.
In the embodiment of the present invention, the Webpage includes one kind in external web page and embedded webpage.External web page is is The webpage that irrespective of size application is opened, for example, for a third-party application, its external web page is referred to not in the application The webpage of opening, such as the webpage opened with system browser is external web page for the third-party application.Embedded net Page is the webpage for the third-party application opening installed in terminal, for example, being loaded in third-party application by network view WebView Webpage, belong to the embedded webpage of the third-party application.
Specifically, when the external web page or embedded webpage loading are completed, the terminal receive the external web page or The jump instruction that the embedded webpage is initiated, and jump information according to entrained by the jump instruction received determines redirected link.
In some feasible embodiments, if the Webpage of the terminal loads is external web page, in the extranets When page loading is completed, the method triggering that the external web page can be by initiating Intent Filter redirects logic, so that by touching Hair redirects logic and initiates jump instruction.The external web page can have been adjusted by Intent Filter method to be listened to this and redirects The Activity of monitoring condition is instructed and meets, hence into the life cycle of the Activity.Wherein, Activity is Android components, the Activity for handling jump information can take Intent Filter when Manifest is defined Attribute, and indicate the information of monitoring, the information include scheme, host, port, path, pathPattern, The information such as pathPrefix and mimeType.After the life cycle of the Activity is entered, the terminal can be at this Redirected link is obtained by getUri functions in Activity intent.
If the Webpage of the terminal loads is embedded webpage, when the embedded webpage loading is completed, the embedded webpage It can be triggered by way of changing iframe src and redirect logic, so that redirecting logic by triggering initiates jump instruction.By In the terminal, class WebViewClient can be set in WebView, and class WebViewClient Parameter URL (the Uniform Resource included in shouldOverrideUrlLoading functions Locator, URL) it is redirected link, so the terminal can perform shouldOverrideUrlLoading functions by adjusting back Mode obtain redirected link.
The target that the default redirected link form of S102, the terminal monitoring and the form of the redirected link match should With.
In the embodiment of the present invention, the intended application of the terminal monitoring is to meet the application of the redirected link, the redirected link Form match with default redirected link form, the default redirected link form is the link lattice for allowing to redirect pre-set Formula, the default redirected link form includes the parameter of domain name, classification and the default interface of mark.
In the embodiment of the present invention, the link form pre-set is the redirected link form of classification, for example:http:// y.qq.com/music_hall/album_detailAlbum_id=12345&album_name=xxx&cove r_url= Xxx, the redirected link is legal HTTP link, can be opened and the page corresponding to the redirected link.For above-mentioned skip chain In the example connect, " y.qq.com " this partly belongs to domain name part, can be set by Intent Filter domain name attribute Fixed, " music_hall " this part is a classification of definition, and " album_detail " this part is the ginseng at the default interface of mark Number, indicates which interface is the redirected link specifically jump to.
In the embodiment of the present invention, redirecting for webpage is redirected and embeds for external web page, redirected link all defers to one Sets of data organizational form, set of rule, all using the redirected link form of classification.Native applications are conducive to unite using such a mode The redirected link of one processing external web page and embedded webpage.For the redirected link being defined by the way of classification, if eventually End redirects the link in external web page, and the terminal does not monitor the Activity for meeting the redirected link, then can also do as usual root Webpage is carried out according to the redirected link to redirect, and correctly shows the web data corresponding to the redirected link;If the terminal has prison The Activity for meeting the redirected link is listened, then performing webpage according to the redirected link by the Activity redirects.Using classification Mode define redirected link, can aid in management and specifically redirect interface, for example " music_hall " this classify can With the interface redirected comprising multiple web interfaces such as special edition details page, singer's details page, the single details pages of song, and for example classify Settings can redirect interface including web interfaces such as broadcast interface setting, network settings, user feedbacks.It can be seen that, use The interface that the mode of classification can effectively manage same type to define redirected link redirects interface.
In the embodiment of the present invention, if the Webpage of the terminal loads is external web page, the terminal monitoring is default to be redirected The intended application that the form of redirected link of the link form with determining matches can include:The terminal first listens to default jump Turn multiple applications that the form of redirected link of the link form with determining matches, and output includes the selection of the plurality of application Dialog box, the selection dialog box is used to select which application in the plurality of application should as target for the user of the terminal With;Then receiving terminal user is directed to the selection instruction that the selection dialog box is inputted, and determines that the selection refers in the plurality of application The corresponding application of order is used as intended application.
In some feasible embodiments, if the Webpage of the terminal loads is external web page, the external web page can With by initiating the mesh that Intent Filter method preset monitored redirected link form and the form of the redirected link match Mark application.Specifically:The external web page is determined by Intent Filter method first listens to the jump instruction Activity, the prescribed information that then the Intent Filter can include according to the Activity for listening to the jump instruction is true This is made while listening for the Activity of monitoring condition is met in the Activity to the jump instruction, if existing multiple Activity meets monitoring condition, and the terminal can eject selection dialog box and be selected for terminal user, and the terminal is received should Terminal user is directed to the selection instruction that the selection dialog box is inputted, and has adjusted target Activity corresponding with the selection instruction, Into target Activity life cycle.Finally, it is determined that application corresponding with target Activity is used as intended application. Wherein, the form of the redirected link of the application corresponding to monitoring condition bag Activity whether with default redirected link form phase Matching, whether the form of the redirected link with determining matches the form of the redirected link of the application corresponding to Activity, Whether the information included with the redirected link that this is determined is consistent the prescribed information that Activity includes.
In the embodiment of the present invention, if the Webpage of the terminal loads is embedded webpage, the terminal monitoring is default to be redirected The intended application that link form and the form of the redirected link match can include:The terminal monitoring presets redirected link form Match with the form of the redirected link and receive the application of the jump instruction as intended application.
S103, the terminal jump to the corresponding default interface of the redirected link by the intended application, wherein, institute Stating Webpage includes any of external web page and embedded webpage.
Specifically, the terminal is after redirected link and intended application is determined, first with the intended application from the jump Turn to parse the series of parameters such as the parameter of domain name, classification and the default interface of mark in link.For example, redirected with above-mentioned Exemplified by the example of link, the terminal can parse domain name after the redirected link is got from the redirected link The parameters such as the parameter " album_detail " at " y.qq.com ", classification " music_hall " and the default interface of mark.Then should The series of parameters such as the parameter at the default interface of domain name, classification and mark that terminal includes according to analysis result are jumped to and the jump Turn the corresponding default interface of link.
In some feasible embodiments, by taking the example of above-mentioned redirected link as an example, "" include three parameters below " album_id ", " album_name " and " cover_url ", and it is separated with " & " symbol in the form of key-value pair.Terminal is in profit When parsing the redirected link with the intended application, three parameters are parsed, and jump to and the redirected link pair in the terminal Three parameters are carried while interface should be preset, in order to which the terminal carries out the processing of subsequent logic according to three parameters, Operated such as obtaining complete album data according to parameter " album_id " request server.
In some feasible embodiments, when the terminal does not hear default redirected link form and the redirected link During the intended application that form matches, the Webpage corresponding to the redirected link is directly opened.Specifically, if the terminal according to The jump instruction detect the redirected link form do not meet default classification redirected link form, the terminal is then direct Open the Webpage corresponding to the redirected link.
In some feasible embodiments, the terminal parses the redirected link using the intended application and obtains parsing knot After fruit, if the terminal detects the redirected link for illegal redirected link, output error prompt message, the miscue Information is used to point out the user of the terminal redirected link illegal, it is impossible to carry out corresponding skip operation.Wherein, the redirected link Can be illegally that the redirected link includes error message.
The embodiment of the present invention by Webpage load complete when, jump instruction is received first, and according to jump instruction Redirected link is determined, the target that then preset monitored redirected link form and the form for the redirected link determined match should With, default interface corresponding with the redirected link determined is jumped to finally by intended application, wherein, Webpage includes outer Any of portion's webpage and embedded webpage, so as to realize that external web page and embedded webpage jump to redirected link institute in time In corresponding interface.
Referring to Fig. 2, Fig. 2 is the schematic flow diagram that a kind of webpage that another embodiment of the present invention is provided redirects processing method, The webpage redirects processing method and can set by smart mobile phone, palm PC, notebook computer, tablet personal computer, mobile Internet It is standby to wait the intelligent terminal with function of surfing the Net and webpage turn function to realize.A kind of webpage as shown in Figure 2 redirects processing Method may include following steps:
S201, terminal loads Webpage, the Webpage include any of external web page and embedded webpage.
In the embodiment of the present invention, the terminal loads Webpage, including loading external web page or the embedded webpage of loading.Outside Portion's webpage is the webpage that system-level application is opened, for example, for a third-party application, its external web page is referred to not In the webpage that this applies interior opening, such as the webpage opened with system browser is extranets for the third-party application Page.Embedded webpage is the webpage for the third-party application opening installed in terminal, for example, passing through network view in third-party application The webpage of WebView loadings, belongs to the embedded webpage of the third-party application.
If S202, the Webpage are external web page, when the external web page page, which is loaded, to be completed, the terminal Jump instruction is received, and redirected link is determined according to the jump instruction.
Specifically, if the Webpage of the terminal loads is external web page, when the external web page loads completion, the end Hold and receive the jump instruction that the external web page is initiated, and the jump information according to entrained by the jump instruction received determines to redirect Link.
In some feasible embodiments, the external web page can be triggered by initiating Intent Filter method Logic is redirected, so that redirecting logic by triggering initiates jump instruction.The external web page can be by Intent Filter side Method has adjusted the Activity for listening to the jump instruction and meeting monitoring condition, hence into the life cycle of the Activity. After the life cycle of the Activity is entered, the terminal can pass through getUri functions in the intent of the Activity Obtain redirected link.
If S203, the Webpage are embedded webpage, when the embedded Webpage loading is completed, the terminal Jump instruction is received, and redirected link is determined according to the jump instruction.
Specifically, if the Webpage of the terminal loads is embedded webpage, when the embedded webpage loading is completed, the end Hold and receive the jump instruction that the embedded webpage is initiated, and the jump information according to entrained by the jump instruction received determines to redirect Link.
In some feasible embodiments, the embedded webpage can be triggered by way of changing iframe src to be redirected Logic, so that redirecting logic by triggering initiates jump instruction.Because the terminal can set class in WebView The parameter included in WebViewClient, and class WebViewClient shouldOverrideUrlLoading functions is unified URLs (Uniform Resource Locator, URL) is redirected link, so the terminal can be performed by adjusting back The mode of shouldOverrideUrlLoading functions obtains redirected link.
The target that the default redirected link form of S204, the terminal monitoring and the form of the redirected link match should With.
In the embodiment of the present invention, the intended application of the terminal monitoring is to meet the application of the redirected link, the redirected link Form match with default redirected link form, the default redirected link form is the link lattice for allowing to redirect pre-set Formula, the default redirected link form includes the parameter of domain name, classification and the default interface of mark.The link form pre-set For the redirected link form of classification, redirecting for webpage is redirected and embeds for external web page, redirected link is all deferred to a set of Data organizational form, set of rule, all using the redirected link form of classification.Description for the redirected link form of classification can With reference to the specific descriptions in above method embodiment one, it will not be repeated here.
In the embodiment of the present invention, if the Webpage of the terminal loads is external web page, the terminal monitoring is default to be redirected The intended application that link form and the form of the redirected link match can include:The terminal first listens to default skip chain Multiple applications that the form of form and the redirected link matches are connect, and exports and includes the selection dialog box of the plurality of application, The selection dialog box is used to select which application in the plurality of application to be used as intended application for the user of the terminal;Then connect Receive terminal user and be directed to the selection instruction that the selection dialog box is inputted, and determine in the plurality of application corresponding to the selection instruction Using being used as intended application.
In some feasible embodiments, if the Webpage of the terminal loads is external web page, the external web page can With by initiating the mesh that Intent Filter method preset monitored redirected link form and the form of the redirected link match Mark application.Specifically:The external web page is determined by Intent Filter method first listens to the jump instruction Activity, the prescribed information that then the Intent Filter can include according to the Activity for listening to the jump instruction is true This is made while listening for the Activity of monitoring condition is met in the Activity to the jump instruction, if existing multiple Activity meets monitoring condition, and the terminal can eject selection dialog box and be selected for terminal user, and the terminal is received should Terminal user is directed to the selection instruction that the selection dialog box is inputted, and has adjusted target Activity corresponding with the selection instruction, Into target Activity life cycle.Finally, it is determined that application corresponding with target Activity is used as intended application. Wherein, the form of the redirected link of the application corresponding to monitoring condition bag Activity whether with default redirected link form phase Matching, whether the form of the redirected link with determining matches the form of the redirected link of the application corresponding to Activity, Whether the information included with the redirected link that this is determined is consistent the prescribed information that Activity includes.
In the embodiment of the present invention, if the Webpage of the terminal loads is embedded webpage, the terminal monitoring is default to be redirected The intended application that link form and the form of the redirected link match can include:The terminal monitoring presets redirected link form Match with the form of the redirected link and receive the application of the jump instruction as intended application.
S205, the terminal jump to the corresponding default interface of the redirected link by the intended application.
Specifically, the terminal is after redirected link and intended application is determined, first with the intended application from the jump Turn to parse the series of parameters such as the parameter of domain name, classification and the default interface of mark in link.Then the terminal is according to parsing The series of parameters such as the parameter at the default interface of domain name, classification and mark as a result included jump to corresponding with the redirected link Default interface.
In some feasible embodiments, when the terminal does not hear default redirected link form and the redirected link During the intended application that form matches, the Webpage corresponding to the redirected link is directly opened.Specifically, if the terminal according to The jump instruction detect the redirected link form do not meet default classification redirected link form, the terminal is then direct Open the Webpage corresponding to the redirected link.
In some feasible embodiments, the terminal parses the redirected link using the intended application and obtains parsing knot After fruit, if the terminal detects the redirected link for illegal redirected link, output error prompt message, the miscue Information is used to point out the user of the terminal redirected link illegal, it is impossible to carry out corresponding skip operation.Wherein, the redirected link Can be illegally that the redirected link includes error message.
The embodiment of the present invention by Webpage load complete when, jump instruction is received first, and according to jump instruction Redirected link is determined, the target that then preset monitored redirected link form and the form for the redirected link determined match should With, default interface corresponding with the redirected link determined is jumped to finally by intended application, wherein, Webpage includes outer Any of portion's webpage and embedded webpage, so as to realize that external web page and embedded webpage jump to redirected link institute in time In corresponding interface.
Referring to Fig. 3, Fig. 3 is the schematic block diagram that a kind of webpage provided in an embodiment of the present invention redirects processing unit, described Device has such as can be arranged on smart mobile phone, palm PC, notebook computer, tablet personal computer, mobile internet device On the intelligent terminal of function of surfing the Net and webpage turn function.Wherein, the webpage shown in Fig. 3, which redirects processing unit, can include place Manage module 301, monitor module 302, jump module 303.
Processing module 301, for when Webpage load complete when, receive jump instruction, it is true according to the jump instruction Determine redirected link.
In the embodiment of the present invention, the Webpage includes one kind in external web page and embedded webpage.Specifically, the processing Module 301 receives the external web page or the embedded webpage is initiated when the external web page or the embedded webpage loading are completed Jump instruction, and jump information according to entrained by the jump instruction received determines redirected link.
In some feasible embodiments, if the Webpage of loading is external web page, in external web page loading During completion, the method triggering that the external web page can be by initiating Intent Filter redirects logic, so as to be redirected by triggering Logic initiates jump instruction.The processing module 301 can have been adjusted by Intent Filter method and listen to the jump instruction And meet the Activity of monitoring condition, hence into the life cycle of the Activity.Entering the life of the Activity After cycle, the processing module 301 can pass through getUri functions acquisition redirected link in the intent of the Activity.
If the Webpage of the terminal loads is embedded webpage, when the embedded webpage loading is completed, the embedded webpage It can be triggered by way of changing iframe src and redirect logic, so that redirecting logic by triggering initiates jump instruction.By In the processing module 301, class WebViewClient can be set in WebView, and class WebViewClient Parameter URL (the Uniform Resource included in shouldOverrideUrlLoading functions Locator, URL) it is redirected link, so the processing module 301 can be performed by adjusting back The mode of shouldOverrideUrlLoading functions obtains redirected link.
Module 302 is monitored, the target that the form for preset monitored redirected link form and the redirected link matches Using.
In the embodiment of the present invention, the intended application that the monitoring module 302 is monitored is to meet the application of the redirected link, the jump Turn link form match with default redirected link form, this preset redirected link form be pre-set allow what is redirected Form is linked, the default redirected link form includes the parameter of domain name, classification and the default interface of mark.The chain pre-set Redirected link form of the form for classification is connect, redirecting for webpage is redirected and embed for external web page, redirected link is all abided by From a set of data organizational form, set of rule, all using the redirected link form of classification.For the redirected link form of classification Description refers to the specific descriptions in above method embodiment one, will not be repeated here.
In the embodiment of the present invention, if the Webpage of loading is external web page, the monitoring module 302 is used for preset monitored The intended application that redirected link form and the form of redirected link match is specially:The monitoring module 302 first listens to preset Multiple applications that redirected link form and the form for the redirected link determined match, and output includes the choosing of the plurality of application Dialog box is selected, the selection dialog box is used to select which application in the plurality of application to be used as intended application for terminal user; Then receiving terminal user is directed to the selection instruction that the selection dialog box is inputted, and determines the selection instruction institute in the plurality of application Corresponding application is used as intended application.
In the embodiment of the present invention, if the Webpage of loading is embedded webpage, the monitoring module 302 is used for preset monitored The intended application that redirected link form and the form of redirected link match is specially:The preset monitored of monitoring module 302 is redirected Link form and the form of the redirected link match and receive the application of the jump instruction as intended application.
Jump module 303, for jumping to the corresponding default interface of the redirected link by the intended application.
Specifically, the jump module 303 manages module 301 and determines that redirected link and the monitoring module 302 are true in this place Make after intended application, domain name, classification and mark are parsed from the redirected link first with the intended application default The series of parameters such as the parameter at interface.Then domain name, classification and the mark that the jump module 303 includes according to analysis result are pre- If the series of parameters such as the parameter at interface jump to default interface corresponding with the redirected link.
In some feasible embodiments, when the monitoring module 302 does not hear default redirected link form and the jump When turning the intended application that form matches linked, the Webpage corresponding to the redirected link is directly opened.Specifically, if should The form that monitoring module 302 detects the redirected link according to the jump instruction does not meet the lattice of the redirected link of default classification Formula, then directly open the Webpage corresponding to the redirected link.
In some feasible embodiments, the redirected link is parsed simultaneously using the intended application in the jump module 303 Obtain after analysis result, if the monitoring module 302 detects the redirected link for illegal redirected link, output error is carried Show information, the miscue information is used to point out the user of the terminal redirected link illegal, it is impossible to carry out corresponding redirecting behaviour Make.Wherein, the redirected link can be illegally that the redirected link includes error message.
It should be noted that the function that a kind of webpage of the embodiment of the present invention redirects each functional module of processing unit can root Implemented according to the method in upper embodiment of the method, it, which implements process and is referred to the correlation of above method embodiment, retouches State, here is omitted.
The embodiment of the present invention by Webpage load complete when, jump instruction is received first, and according to jump instruction Redirected link is determined, the target that then preset monitored redirected link form and the form for the redirected link determined match should With, default interface corresponding with the redirected link determined is jumped to finally by intended application, wherein, Webpage includes outer Any of portion's webpage and embedded webpage, so as to realize that external web page and embedded webpage jump to redirected link institute in time In corresponding interface.
Referring to Fig. 4, Fig. 4 is the schematic block diagram that a kind of webpage provided in an embodiment of the present invention redirects processing unit, described Device has such as can be arranged on smart mobile phone, palm PC, notebook computer, tablet personal computer, mobile internet device On the intelligent terminal of function of surfing the Net and webpage turn function.Wherein, the webpage shown in Fig. 4, which redirects processing unit, can include place Manage module 401, monitor module 402, jump module 403, performing module 404.Monitoring module 402 includes:Monitoring unit 4021, it is defeated Go out unit 4022, receiving unit 4023, determining unit 4024.
Processing module 401, for when Webpage load complete when, receive jump instruction, it is true according to the jump instruction Determine redirected link.
In the embodiment of the present invention, the Webpage includes one kind in external web page and embedded webpage.Specifically, the processing Module 401 receives the external web page or the embedded webpage is initiated when the external web page or the embedded webpage loading are completed Jump instruction, and jump information according to entrained by the jump instruction received determines redirected link.
Module 402 is monitored, the target that the form for preset monitored redirected link form and the redirected link matches Using.The monitoring module 402 is specifically included:
Monitoring unit 4021, it is multiple that the form for preset monitored redirected link form and the redirected link matches Using.
Output unit 4022, includes the selection dialog box of the multiple application for exporting.
Receiving unit 4023, for receiving selection instruction of the user for the selection dialog box input.
Determining unit 4024, is additionally operable to determine that the corresponding application of selection instruction described in the multiple application should as target With.
The monitoring module 402, specifically for preset monitored redirected link form and the form phase of the redirected link Match somebody with somebody and receive the application of the jump instruction as intended application.
Jump module 403, for jumping to the corresponding default interface of the redirected link by the intended application.
Specifically, the jump module 403 manages module 401 and determines that redirected link and the monitoring module 402 are true in this place Make after intended application, domain name, classification and mark are parsed from the redirected link first with the intended application default The series of parameters such as the parameter at interface.Then domain name, classification and the mark that the jump module 403 includes according to analysis result are pre- If the series of parameters such as the parameter at interface jump to default interface corresponding with the redirected link.
Performing module 404, for not hearing default redirected link form and the skip chain when the monitoring module 402 During the intended application that the form connect matches, the corresponding Webpage of the redirected link is opened.
In some feasible embodiments, if the monitoring module 402 detects the redirected link according to the jump instruction Form do not meet default classification redirected link form, then trigger the performing module 404 and directly open the redirected link Corresponding Webpage.
In some feasible embodiments, the redirected link is parsed simultaneously using the intended application in the jump module 403 Obtain after analysis result, if the monitoring module 402 detects the redirected link for illegal redirected link, output error is carried Show information, the miscue information is used to point out the user of the terminal redirected link illegal, it is impossible to carry out corresponding redirecting behaviour Make.Wherein, the redirected link can be illegally that the redirected link includes error message.
It should be noted that the function that a kind of webpage of the embodiment of the present invention redirects each functional module of processing unit can root Implemented according to the method in upper embodiment of the method, it, which implements process and is referred to the correlation of above method embodiment, retouches State, here is omitted.
The embodiment of the present invention by Webpage load complete when, jump instruction is received first, and according to jump instruction Redirected link is determined, the target that then preset monitored redirected link form and the form for the redirected link determined match should With, default interface corresponding with the redirected link determined is jumped to finally by intended application, wherein, Webpage includes outer Any of portion's webpage and embedded webpage, so as to realize that external web page and embedded webpage jump to redirected link institute in time In corresponding interface.
Referring to Fig. 5, Fig. 5 is a kind of schematic block diagram of terminal provided in an embodiment of the present invention, described in the embodiment of the present invention The relevant technical details of terminal be referred to inventive embodiments content shown in Fig. 1 to Fig. 4, I will not elaborate.The terminal It can include:Input equipment 501, output equipment 502, such as processor 503, CPU;With memory 504, above-mentioned input equipment 501st, output equipment 502, processor 503 and memory 504 are connected by bus 505.
In the embodiment of the present invention, output equipment 502 for example can be the display screen (Display) for output, touch screen, Receiver and loudspeaker for playing voice signal etc., input equipment 501 for example can be the keyboards for input Etc. (Keyboard), it is necessary to which explanation, display screen and touch screen herein can be the integrated design, keyboard both can be Physical keyboard, or touch screen dummy keyboard, the keyboard that can also be combined for entity with touch screen virtualphase.Memory 504 can To be high-speed RAM memory or non-labile memory (non-volatile memory), for example, at least one Magnetic disk storage.Memory 504 optionally can also be at least one storage device for being located remotely from aforementioned processor 503.Deposit Reservoir 504 is used for store instruction, and processor 503 is used for the program for performing the storage of memory 504.Wherein:
Above-mentioned processor 503, for when Webpage loads completion, receiving jump instruction, and finger is redirected according to described Order determines redirected link.
Above-mentioned processor 503, is additionally operable to what the form of preset monitored redirected link form and the redirected link matched Intended application.
Above-mentioned processor 503, is additionally operable to jump to the corresponding default interface of the redirected link by the intended application, Wherein, the Webpage includes any of external web page and embedded webpage.
Above-mentioned processor 503, is additionally operable to what the form of preset monitored redirected link form and the redirected link matched Multiple applications.
Above-mentioned output equipment 502, includes the selection dialog box of the multiple application for exporting.
Above-mentioned input equipment 501, for receiving selection instruction of the user for the selection dialog box input.
Above-mentioned processor 503, is additionally operable to determine the corresponding application of selection instruction described in the multiple application as target Using.
Above-mentioned processor 503, be additionally operable to preset monitored redirected link form and the redirected link form match and The application of the jump instruction is received as intended application.
In the embodiment of the present invention, the Webpage includes one kind in external web page and embedded webpage.Specifically, the processing Device 503 receives the external web page or this embeds what webpage was initiated when the external web page or the embedded webpage loading are completed Jump instruction, and jump information according to entrained by the jump instruction received determines redirected link.
In the embodiment of the present invention, if the Webpage of loading is external web page, the preset monitored skip chain of processor 503 Connecing the intended application that the form of form and the redirected link matches is specially:The processor 503 first listens to default redirect Multiple applications that the form of link form and the redirected link matches, and trigger the output of output equipment 502 include it is the plurality of The selection dialog box of application, the selection dialog box be used to select for the user of terminal in the plurality of application which apply conduct Intended application;Then triggering input equipment 501 receiving terminal user is directed to the selection instruction that the selection dialog box is inputted, and finally should Processor 503 determines application in the plurality of application corresponding to the selection instruction as intended application.
In the embodiment of the present invention, if the Webpage of the processor 503 loading is embedded webpage, the processor 503 is supervised The intended application for listening the form of default redirected link form and the redirected link to match is specially:The processor 503 is monitored Default redirected link form and the form of the redirected link match and receive the application of the jump instruction as intended application.
In the embodiment of the present invention, above-mentioned processor 503 is additionally operable to not hear default redirected link form and the skip chain During the intended application that the form connect matches, the corresponding Webpage of the redirected link is opened.Specifically, if the processor 503 forms for detecting the redirected link according to the jump instruction do not meet the form of the redirected link of default classification, then directly Take out the Webpage corresponding to the redirected link.
In some feasible embodiments, the processor 503 parses the redirected link using the intended application and obtained After analysis result, if the processor 503 detects the redirected link for illegal redirected link, the output equipment is triggered 502 output error prompt messages, the miscue information is used to point out the user of the terminal redirected link illegal, it is impossible to carry out Corresponding skip operation.Wherein, the redirected link can be illegally that the redirected link includes error message.
The embodiment of the present invention by Webpage load complete when, jump instruction is received first, and according to jump instruction Redirected link is determined, the target that then preset monitored redirected link form and the form for the redirected link determined match should With, default interface corresponding with the redirected link determined is jumped to finally by intended application, wherein, Webpage includes outer Any of portion's webpage and embedded webpage, so as to realize that external web page and embedded webpage jump to redirected link institute in time In corresponding interface.
The webpage provided above the embodiment of the present invention redirects processing method and processing device and is described in detail, herein Apply specific case to be set forth the principle and embodiment of the present invention, the explanation of above example is only intended to help Understand the method and its core concept of the present invention;Simultaneously for those of ordinary skill in the art, according to the thought of the present invention, It will change in specific embodiments and applications, in summary, this specification content should not be construed as to this The limitation of invention.

Claims (10)

1. a kind of webpage redirects processing method, it is characterised in that methods described includes:
When Webpage, which is loaded, to be completed, jump instruction is received, redirected link is determined according to the jump instruction;
The intended application that preset monitored redirected link form and the form of the redirected link match;
The corresponding default interface of the redirected link is jumped to by the intended application, wherein, the Webpage includes outer Any of portion's webpage and embedded webpage.
2. according to the method described in claim 1, it is characterised in that when the Webpage is external web page, the monitoring The intended application that default redirected link form and the form of the redirected link match, including:
Multiple applications that preset monitored redirected link form and the form of the redirected link match;
Output includes the selection dialog box of the multiple application;
Receive selection instruction of the user for the selection dialog box input;
Determine the corresponding application of selection instruction described in the multiple application as intended application.
3. according to the method described in claim 1, it is characterised in that when the Webpage is embedded webpage, the monitoring The intended application that default redirected link form and the form of the redirected link match, including:
Preset monitored redirected link form and the form of the redirected link, which match and receive applying for the jump instruction, to be made For intended application.
4. the method according to any one of claims 1 to 3, it is characterised in that methods described also includes:
When not hearing the intended application that form of the default redirected link form with the redirected link matches, open described The corresponding Webpage of redirected link.
5. method according to claim 4, it is characterised in that the default redirected link form include domain name, classify with And the parameter at the default interface of mark.
6. a kind of webpage redirects processing unit, it is characterised in that described device includes:
Processing module, for when Webpage loads completion, receiving jump instruction, skip chain being determined according to the jump instruction Connect;
Module is monitored, the intended application that the form for preset monitored redirected link form and the redirected link matches;
Jump module, for jumping to the corresponding default interface of the redirected link by the intended application, wherein, the net The page page includes any of external web page and embedded webpage.
7. device according to claim 6, it is characterised in that the monitoring module is specifically included:
Monitoring unit, multiple applications that the form for preset monitored redirected link form and the redirected link matches;
Output unit, includes the selection dialog box of the multiple application for exporting;
Receiving unit, for receiving selection instruction of the user for the selection dialog box input;
Determining unit, for determining the corresponding application of selection instruction described in the multiple application as intended application.
8. device according to claim 6, it is characterised in that
The monitoring module, matches and receives specifically for the form of preset monitored redirected link form and the redirected link The application of the jump instruction is used as intended application.
9. the device according to any one of claim 6 to 8, it is characterised in that described device also includes:
Performing module, for not hearing default redirected link form and the form phase of the redirected link when the monitoring module During the intended application of matching, the corresponding Webpage of the redirected link is opened.
10. device according to claim 9, it is characterised in that the default redirected link form include domain name, classify with And the parameter at the default interface of mark.
CN201710191253.5A 2017-03-28 2017-03-28 A kind of webpage redirects processing method and processing device Pending CN106970977A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710191253.5A CN106970977A (en) 2017-03-28 2017-03-28 A kind of webpage redirects processing method and processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710191253.5A CN106970977A (en) 2017-03-28 2017-03-28 A kind of webpage redirects processing method and processing device

Publications (1)

Publication Number Publication Date
CN106970977A true CN106970977A (en) 2017-07-21

Family

ID=59336219

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710191253.5A Pending CN106970977A (en) 2017-03-28 2017-03-28 A kind of webpage redirects processing method and processing device

Country Status (1)

Country Link
CN (1) CN106970977A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108009031A (en) * 2017-12-14 2018-05-08 维沃移动通信有限公司 The control method and mobile terminal of a kind of application program
CN108040095A (en) * 2017-12-04 2018-05-15 北京小米移动软件有限公司 Communication means, device and electronic equipment
CN108111676A (en) * 2017-12-14 2018-06-01 维沃移动通信有限公司 A kind of application control method and mobile terminal
CN108121568A (en) * 2017-11-30 2018-06-05 五八有限公司 Arouse method and device, electronic equipment and the readable storage medium storing program for executing of APP
WO2019019380A1 (en) * 2017-07-26 2019-01-31 上海壹账通金融科技有限公司 Hybrid app page navigation method and apparatus, terminal and storage medium
CN110781432A (en) * 2019-10-08 2020-02-11 北京字节跳动网络技术有限公司 Page jump method and device, electronic equipment and computer readable storage medium
CN111538922A (en) * 2019-01-18 2020-08-14 百度在线网络技术(北京)有限公司 Link skip method, application client, device and storage medium
CN112130975A (en) * 2020-09-15 2020-12-25 北京值得买科技股份有限公司 Method for automatically transferring data between android pages
WO2023116474A1 (en) * 2021-12-22 2023-06-29 掌阅科技股份有限公司 Page jump method, electronic device and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103678508A (en) * 2013-11-21 2014-03-26 北京奇虎科技有限公司 Webpage opening method and device
US20140325089A1 (en) * 2013-04-28 2014-10-30 Tencent Technology (Shenzhen) Company Limited Method, terminal, server and system for page jump
CN105122760A (en) * 2013-11-06 2015-12-02 华为终端有限公司 Page operation processing method, device and terminal
CN105574170A (en) * 2015-12-16 2016-05-11 深圳市金立通信设备有限公司 Web page link opening method and terminal
CN106095549A (en) * 2016-06-07 2016-11-09 中国建设银行股份有限公司 The jump method of a kind of Mobile solution App and redirect device
CN106294839A (en) * 2016-08-20 2017-01-04 北京云艾科技有限公司 A kind of link jump method and device
CN106294372A (en) * 2015-05-15 2017-01-04 阿里巴巴集团控股有限公司 Application program page quick access method and apply its mobile terminal
CN106528659A (en) * 2016-10-19 2017-03-22 广东欧珀移动通信有限公司 A control method and device for jumping from a browser to an application program

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140325089A1 (en) * 2013-04-28 2014-10-30 Tencent Technology (Shenzhen) Company Limited Method, terminal, server and system for page jump
CN105122760A (en) * 2013-11-06 2015-12-02 华为终端有限公司 Page operation processing method, device and terminal
CN103678508A (en) * 2013-11-21 2014-03-26 北京奇虎科技有限公司 Webpage opening method and device
CN106294372A (en) * 2015-05-15 2017-01-04 阿里巴巴集团控股有限公司 Application program page quick access method and apply its mobile terminal
CN105574170A (en) * 2015-12-16 2016-05-11 深圳市金立通信设备有限公司 Web page link opening method and terminal
CN106095549A (en) * 2016-06-07 2016-11-09 中国建设银行股份有限公司 The jump method of a kind of Mobile solution App and redirect device
CN106294839A (en) * 2016-08-20 2017-01-04 北京云艾科技有限公司 A kind of link jump method and device
CN106528659A (en) * 2016-10-19 2017-03-22 广东欧珀移动通信有限公司 A control method and device for jumping from a browser to an application program

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
朱桂英: "Android开发应用从入门到精通", 《中国铁道出版社》 *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019019380A1 (en) * 2017-07-26 2019-01-31 上海壹账通金融科技有限公司 Hybrid app page navigation method and apparatus, terminal and storage medium
CN108121568A (en) * 2017-11-30 2018-06-05 五八有限公司 Arouse method and device, electronic equipment and the readable storage medium storing program for executing of APP
CN108040095A (en) * 2017-12-04 2018-05-15 北京小米移动软件有限公司 Communication means, device and electronic equipment
CN108040095B (en) * 2017-12-04 2020-10-13 北京小米移动软件有限公司 Communication method and device and electronic equipment
CN108009031A (en) * 2017-12-14 2018-05-08 维沃移动通信有限公司 The control method and mobile terminal of a kind of application program
CN108111676A (en) * 2017-12-14 2018-06-01 维沃移动通信有限公司 A kind of application control method and mobile terminal
CN108111676B (en) * 2017-12-14 2021-06-08 维沃移动通信有限公司 Application program control method, mobile terminal and computer readable storage medium
CN111538922A (en) * 2019-01-18 2020-08-14 百度在线网络技术(北京)有限公司 Link skip method, application client, device and storage medium
CN111538922B (en) * 2019-01-18 2023-11-21 百度在线网络技术(北京)有限公司 Link jump method, application client, device and storage medium
CN110781432A (en) * 2019-10-08 2020-02-11 北京字节跳动网络技术有限公司 Page jump method and device, electronic equipment and computer readable storage medium
CN112130975A (en) * 2020-09-15 2020-12-25 北京值得买科技股份有限公司 Method for automatically transferring data between android pages
WO2023116474A1 (en) * 2021-12-22 2023-06-29 掌阅科技股份有限公司 Page jump method, electronic device and storage medium

Similar Documents

Publication Publication Date Title
CN106970977A (en) A kind of webpage redirects processing method and processing device
CN104794396B (en) Across standing posture script loophole detection method and device
WO2019000710A1 (en) Page loading method, apparatus and electronic device
WO2019157894A1 (en) Application page display method and apparatus, storage medium and electronic device
WO2019149026A1 (en) Method and device for generating link for application page, storage medium, and electronic apparatus
WO2019157880A1 (en) Method and device for generating link for application page, storage medium, and electronic apparatus
CN109358936A (en) Information processing method, device, storage medium, electronic equipment and system
WO2017032089A1 (en) Search method and terminal
US20130219277A1 (en) Gesture and Voice Controlled Browser
CN106777184A (en) A kind of page loading method, device and electronic equipment
CN107391115B (en) A kind of method, apparatus and computer equipment for realizing pop-up alternative events
CN104050266B (en) User behavior recording method, device and web browser
CN108363528A (en) Startup method, apparatus, storage medium and the electronic equipment of five application page
CN107733984A (en) A kind of method, terminal and computer-readable recording medium for pushing screen locking information
CN105989120B (en) A kind of personalization content recommendation method and individualized content recommender system
CN105260424B (en) The processing method and processing device that user browses web-page histories record and most frequentation is asked
CN107241511B (en) Music playing method, device, storage medium and terminal
CN107357489A (en) A kind of synchronous method for browsing information, terminal and server
CN106528659A (en) A control method and device for jumping from a browser to an application program
CN108549568A (en) Using entrance processing method, apparatus, storage medium and electronic equipment
EP3622383B1 (en) Data transfers from memory to manage graphical output latency
CN104424212A (en) Method and device for sharing media content and method and device for display media content
CN107547748A (en) A kind of picture management method, terminal and computer-readable recording medium
CN107577712B (en) A kind of method, apparatus and computer equipment of loading page
CN106371994A (en) Dynamic mobile APP testing method based on natural language processing

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170721

RJ01 Rejection of invention patent application after publication