CN106161656A - The method and device that a kind of interface redirects - Google Patents
The method and device that a kind of interface redirects Download PDFInfo
- Publication number
- CN106161656A CN106161656A CN201610794076.5A CN201610794076A CN106161656A CN 106161656 A CN106161656 A CN 106161656A CN 201610794076 A CN201610794076 A CN 201610794076A CN 106161656 A CN106161656 A CN 106161656A
- Authority
- CN
- China
- Prior art keywords
- path
- redirects
- redirect
- interface
- uri address
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/148—Migration or transfer of sessions
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/955—Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses the method and device that a kind of interface redirects, the method includes: obtain the first Uniform Resource Identifier URI address, based on a URI address, path determines redirect path preset redirecting for a URI address corresponding first, redirect path based on first, jump to first from current interface and redirect the corresponding appointment in path and redirect interface.That is, the path that redirects in electronic equipment can be preset, then electronic equipment is when receiving URI address, in preset redirecting, electronic equipment will determine in path that redirects a road strength, be finally based on determine redirect path to carry out redirecting of interface, so be possible not only to realize that diversified interface redirects, and it is also possible that interface redirect more convenient.
Description
Technical field
The application relates to field of computer technology, particularly relates to the method and device that a kind of interface redirects.
Background technology
With electronic technology development, various portable electric appts also get more and more, and such as mobile phone, panel computer etc. are portable
Formula electronic equipment.
Currently, electronic equipment can be carried out same application or different application also interface redirects, but
This interface redirects the fixing rule that redirects being all based in electronic equipment and redirects, and so makes interface redirect by relatively
Big restriction, the mode causing interface to redirect is more single.
Content of the invention
Embodiments provide the method and device of a kind of switch labels page, in order to solve prior art median surface
Redirect the fixing rule that redirects being all based in electronic equipment to redirect, so make interface redirect by bigger limit
System, the mode causing interface to redirect is more single.
Its concrete technical scheme is as follows:
A kind of method that interface redirects, described method includes:
Obtain the first Uniform Resource Identifier URI address;
Based on a described URI address, redirect at preset M article and path is determined corresponding with a described URI address
One redirects path, and wherein, M is the positive integer more than or equal to 1;
Redirect path based on described first, jump to described first from current interface and redirect the corresponding appointment in path and redirect interface.
Optionally, before obtaining the first Uniform Resource Identifier URI address, also include:
Editor's configuration file, configures each in described configuration file and redirects path, and wherein, every paths contains path ID
And/or query argument and/or redirect interface.
Optionally, configure in described configuration file each redirect path after, also include:
Send described configuration file to the webserver, to be saved in described configuration file in the described webserver.
Optionally, path is determined redirect path preset redirecting with a described URI address corresponding first, bag
Include: described preset redirecting, path being determined, at least two redirect path;
Based on the query argument path ID in a described URI address, described at least two redirect path is determined described
ID corresponding described first redirects path.
The device that a kind of interface redirects, comprising:
Acquisition module, for obtaining the first Uniform Resource Identifier URI address;
Determining module, for based on a described URI address, redirects at preset M article and determines in path and a described URI
Address corresponding first redirects path, and wherein, M is the positive integer more than or equal to 1;
Control module, for redirecting path based on described first, jumping to described first from current interface, to redirect path corresponding
Appointment redirects interface.
Optionally, also include:
Processing module, is used for editing configuration file, configures each and redirect path in described configuration file, wherein, and Mei Tiaolu
Footpath contains path ID and/or query argument and/or redirects interface.
Optionally, also include:
Sending module, for sending described configuration file to the webserver, so that described configuration file is saved in described net
In network server.
Optionally, described preset redirecting, described determining module, specifically for determining in path that at least two redirect road
Footpath;Based on the query argument path ID in a described URI address, redirect at described at least two and path is determined described ID
Corresponding described first redirects path.
Providing a kind of method that interface redirects in the embodiment of the present invention, the method includes: obtain the first unified resource mark
Know symbol URI address, based on a URI address, path determines redirect for a URI address corresponding first preset redirecting
Path, redirects path based on first, jumps to first from current interface and redirects the corresponding appointment in path and redirect interface.Namely
Saying, the path that redirects in electronic equipment can be preset, and then electronic equipment is when receiving URI address, and electronic equipment will be in advance
Redirecting of putting determines in path that redirects a road strength, be finally based on determine redirect path to carry out redirecting of interface, this
Sample is possible not only to realize that diversified interface redirects, and it is also possible that interface redirect more convenient.
Brief description
Fig. 1 is the flow chart of a kind of method that interface redirects in the embodiment of the present invention;
Fig. 2 is the structural representation of the device that a kind of interface redirects in the embodiment of the present invention.
Detailed description of the invention
In the embodiment of the present invention, the problem more single in order to solve mode that prior art median surface redirects, the present invention
Providing a kind of method that interface redirects in embodiment, the method includes: obtain the first Uniform Resource Identifier URI address, base
In a URI address, path determines redirect path preset redirecting for a URI address corresponding first, based on first
Redirect path, jump to first from current interface and redirect the corresponding appointment in path and redirect interface.It is to say, in electronic equipment
Redirecting path can be preset, and then electronic equipment is when receiving URI address, and electronic equipment will redirect in path really preset
Make one and redirect road strength, be finally based on determine redirect path to carry out redirecting of interface, be so possible not only to realize many
The interface of sample redirects, and it is also possible that interface redirect more convenient.
Below by accompanying drawing and specific embodiment, technical solution of the present invention is described in detail, it will be appreciated that this
Concrete technical characteristic in bright embodiment and embodiment is the explanation to technical solution of the present invention, rather than limits, not
In the case of conflict, the concrete technical characteristic in the embodiment of the present invention and embodiment can be mutually combined.
Being illustrated in figure 1 the flow chart of a kind of method that interface redirects in the embodiment of the present invention, the method includes:
S101, obtains the first Uniform Resource Identifier URI address;
S102, based on a URI address, redirects at preset M article and determines in path for corresponding first jump in a URI address
Turn path;
S103, redirects path based on first, jumps to first from current interface and redirects the corresponding appointment in path and redirect interface.
Specifically, before this electronic equipment receives a URI address, first have to be pre-configured with and redirect path, also
That is path can be redirected preset part according to demand.This redirect path can comprise indicate path path ID and
The interface title redirecting interface specified, the interface title etc. giving tacit consent to the interface entering, will not redirect in path herein
The information being comprised all enumerates, and can configure according to different demands in embodiments of the present invention and redirect included in path
Information.
Further, in embodiments of the present invention, configuration file can be edited by object representation JSON form, then
Configure each needs again in configuration file redirects path, owing to JSON employing is totally independent of the text formatting of language, this
Sample makes to redirect path and may be easy to write and read.Certainly, in embodiments of the present invention, other language lattice can also be used
Formula edits configuration file, herein just illustration no longer one by one.
After the editor completing configuration file, this configuration file can be saved in the memory module of self by electronic equipment
In, electronic equipment so can be facilitated to transfer out this configuration file timely, thus it is corresponding to find a URI address easily
Redirect path.
Certainly, in embodiments of the present invention, this configuration file can also be saved in the webserver, say, that is joining
Putting after Document Editing completes, electronic equipment can send configuration file to the webserver, and then the webserver is protected
Depositing, such electronic equipment can save part memory space, and when electronic equipment needs this configuration file, this electronic equipment is permissible
This configuration file is transferred out in the webserver.
After the editor completing configuration file and storage, if electronic equipment receives a URI address, this electricity
URI address will be resolved by subset.
This electronic equipment will parse query parameter in a URI address, it may be assumed that Query parameter, in this Query parameter
Specify a certain bar and redirect path, and also specify the source redirecting path.That is contain in this Query parameter
Redirect the ID in path, can directly be determined by this ID and corresponding redirect path, be then based on this and redirect path and carry out boundary
Face redirects.
In embodiments of the present invention, electronic equipment is free to configuration and redirects path, thus electronic equipment is receiving
After URI address, electronic equipment corresponding can redirect path based on orienting of determining of URI address, is so possible not only to
Realize that diversified interface redirects, and it is also possible that interface redirect more convenient.
The method that a kind of interface in the corresponding embodiment of the present invention redirects, the embodiment of the present invention additionally provides a kind of interface and jumps
The device turning, is illustrated in figure 2 a kind of interface in the embodiment of the present invention and redirects the structural representation of device, and this device includes:
Acquisition module 201, for obtaining the first Uniform Resource Identifier URI address;
Determining module 202, for based on a described URI address, redirects at preset M bar and determines in path and described first
URI address corresponding first redirects path, and wherein, M is the positive integer more than or equal to 1;
Control module 203, for redirecting path based on described first, jumps to described first from current interface and redirects path correspondence
Appointment redirect interface.
Further, in embodiments of the present invention, this device also includes:
Processing module, is used for editing configuration file, configures each and redirect path in described configuration file, wherein, and Mei Tiaolu
Footpath contains path ID and/or query argument and/or redirects interface.
Further, in embodiments of the present invention, this device also includes:
Sending module, for sending described configuration file to the webserver, so that described configuration file is saved in described net
In network server.
Further, in embodiments of the present invention, determining module 202, specifically for determining described preset redirecting in path
Go out at least two and redirect path;Based on the query argument path ID in a described URI address, redirect road at described at least two
Footpath being determined, described ID corresponding described first redirects path.
Although having been described for the preferred embodiment of the application, but one of ordinary skilled in the art once knowing substantially
Creative concept, then can make other change and modification to these embodiments.So, claims are intended to be construed to bag
Include preferred embodiment and fall into all changes and the modification of the application scope.
Obviously, those skilled in the art can carry out various change and the modification essence without deviating from the application to the application
God and scope.So, if these modifications of the application and modification belong to the scope of the application claim and equivalent technologies thereof
Within, then the application is also intended to comprise these changes and modification.
Claims (8)
1. the method that an interface redirects, it is characterised in that described method includes:
Obtain the first Uniform Resource Identifier URI address;
Based on a described URI address, redirect at preset M article and path is determined corresponding with a described URI address
One redirects path, and wherein, M is the positive integer more than or equal to 1;
Redirect path based on described first, jump to described first from current interface and redirect the corresponding appointment in path and redirect interface.
2. the method for claim 1, it is characterised in that before obtaining the first Uniform Resource Identifier URI address, also
Including:
Editor's configuration file, configures each in described configuration file and redirects path, and wherein, every paths contains path ID
And/or query argument and/or redirect interface.
3. method as claimed in claim 2, it is characterised in that configure in described configuration file each redirect path it
After, also include:
Send described configuration file to the webserver, to be saved in described configuration file in the described webserver.
4. the method for claim 1, it is characterised in that determine in path and a described URI ground preset redirecting
Location corresponding first redirects path, comprising:
Described preset redirecting, path being determined, at least two redirect path;
Based on the query argument path ID in a described URI address, described at least two redirect path is determined described
ID corresponding described first redirects path.
5. the device that an interface redirects, it is characterised in that include:
Acquisition module, for obtaining the first Uniform Resource Identifier URI address;
Determining module, for based on a described URI address, redirects at preset M article and determines in path and a described URI
Address corresponding first redirects path, and wherein, M is the positive integer more than or equal to 1;
Control module, for redirecting path based on described first, jumping to described first from current interface, to redirect path corresponding
Appointment redirects interface.
6. device as claimed in claim 5, it is characterised in that also include:
Processing module, is used for editing configuration file, configures each and redirect path in described configuration file, wherein, and Mei Tiaolu
Footpath contains path ID and/or query argument and/or redirects interface.
7. device as claimed in claim 6, it is characterised in that also include:
Sending module, for sending described configuration file to the webserver, so that described configuration file is saved in described net
In network server.
8. device as claimed in claim 5, it is characterised in that described determining module, specifically for preset redirecting road described
Footpath is determined at least two and redirects path;Based on the query argument path ID in a described URI address, described at least two
Bar redirects determines in path that described ID corresponding described first redirects path.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610794076.5A CN106161656B (en) | 2016-08-31 | 2016-08-31 | Interface jumping method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610794076.5A CN106161656B (en) | 2016-08-31 | 2016-08-31 | Interface jumping method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106161656A true CN106161656A (en) | 2016-11-23 |
CN106161656B CN106161656B (en) | 2020-10-13 |
Family
ID=57344747
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610794076.5A Active CN106161656B (en) | 2016-08-31 | 2016-08-31 | Interface jumping method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106161656B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107707614A (en) * | 2017-08-16 | 2018-02-16 | 深圳市丰巢科技有限公司 | App route implementation methods, equipment and the storage medium of agreement are jumped based on system |
CN109033302A (en) * | 2018-07-16 | 2018-12-18 | 深圳鼎盛电脑科技有限公司 | A kind of method for page jump, device, terminal and storage medium |
CN109783742A (en) * | 2018-12-14 | 2019-05-21 | 平安科技(深圳)有限公司 | For developing method for page jump, device and the computer equipment of auxiliary |
CN111309416A (en) * | 2020-01-19 | 2020-06-19 | 北京字节跳动网络技术有限公司 | Information display method, device and equipment of application interface and readable medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101609399A (en) * | 2008-06-20 | 2009-12-23 | 鸿富锦精密工业(深圳)有限公司 | Intelligent website development system and method based on modeling |
US20140280772A1 (en) * | 2013-03-12 | 2014-09-18 | Brother Kogyo Kabushiki Kaisha | Server, image processing device, and system comprising image processing device and server |
CN104156232A (en) * | 2014-07-18 | 2014-11-19 | 百度在线网络技术(北京)有限公司 | Equipment and method for nonlinear page skip under linear page structure |
US20150156230A1 (en) * | 2013-11-29 | 2015-06-04 | Raghava Kalyanaraman | Method and system for social collaborative curation |
US9298355B1 (en) * | 2015-03-23 | 2016-03-29 | Dropbox, Inc. | Content item templates |
CN105512190A (en) * | 2015-11-26 | 2016-04-20 | 网易(杭州)网络有限公司 | Interface jumping method and device |
US20160142361A1 (en) * | 2014-11-15 | 2016-05-19 | Filmstrip, Inc. | Image with audio conversation system and method utilizing social media communications |
-
2016
- 2016-08-31 CN CN201610794076.5A patent/CN106161656B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101609399A (en) * | 2008-06-20 | 2009-12-23 | 鸿富锦精密工业(深圳)有限公司 | Intelligent website development system and method based on modeling |
US20140280772A1 (en) * | 2013-03-12 | 2014-09-18 | Brother Kogyo Kabushiki Kaisha | Server, image processing device, and system comprising image processing device and server |
US20150156230A1 (en) * | 2013-11-29 | 2015-06-04 | Raghava Kalyanaraman | Method and system for social collaborative curation |
CN104156232A (en) * | 2014-07-18 | 2014-11-19 | 百度在线网络技术(北京)有限公司 | Equipment and method for nonlinear page skip under linear page structure |
US20160142361A1 (en) * | 2014-11-15 | 2016-05-19 | Filmstrip, Inc. | Image with audio conversation system and method utilizing social media communications |
US9298355B1 (en) * | 2015-03-23 | 2016-03-29 | Dropbox, Inc. | Content item templates |
CN105512190A (en) * | 2015-11-26 | 2016-04-20 | 网易(杭州)网络有限公司 | Interface jumping method and device |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107707614A (en) * | 2017-08-16 | 2018-02-16 | 深圳市丰巢科技有限公司 | App route implementation methods, equipment and the storage medium of agreement are jumped based on system |
CN107707614B (en) * | 2017-08-16 | 2022-02-08 | 深圳市丰巢科技有限公司 | System hop protocol-based app routing implementation method, device and storage medium |
CN109033302A (en) * | 2018-07-16 | 2018-12-18 | 深圳鼎盛电脑科技有限公司 | A kind of method for page jump, device, terminal and storage medium |
CN109783742A (en) * | 2018-12-14 | 2019-05-21 | 平安科技(深圳)有限公司 | For developing method for page jump, device and the computer equipment of auxiliary |
CN109783742B (en) * | 2018-12-14 | 2023-08-22 | 平安科技(深圳)有限公司 | Page jump method and device for development assistance and computer equipment |
CN111309416A (en) * | 2020-01-19 | 2020-06-19 | 北京字节跳动网络技术有限公司 | Information display method, device and equipment of application interface and readable medium |
Also Published As
Publication number | Publication date |
---|---|
CN106161656B (en) | 2020-10-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103389969B (en) | A kind of methods, devices and systems for mobile terminal preview pdf document | |
CN103151057B (en) | Method for playing music and device | |
CN106406846B (en) | Display interface creating method and device | |
CN106161656A (en) | The method and device that a kind of interface redirects | |
CN108255993A (en) | Extract method, apparatus, electronic equipment and the storage medium of service fields | |
CN103067423B (en) | The method of browser kernel adaptation and browser | |
CN102073526B (en) | Software transfer installation method and system for mobile terminal | |
CN104410957A (en) | Automatic multimedia interpretation device, system and method based on iBeacon | |
RU2524394C2 (en) | Method and apparatus for configuring presentation of service guides | |
CN104657201A (en) | Method, device, equipment and system for pushing application program | |
CN104182408A (en) | Webpage off-line access method and webpage off-line access device | |
CN105682029A (en) | Geographic position recommendation method and user terminal | |
CN102904960A (en) | Information synchronizing system and method based on really simple syndication (RSS) | |
CN105337822A (en) | Main playback device selection method and related device | |
CN105547317A (en) | Navigation route selection method and mobile terminal | |
CN105989118A (en) | Software recommendation method and equipment | |
CN105701153B (en) | Method and device for reading webpage resources and electronic equipment | |
CN103685295A (en) | Method, terminal and system for downloading multimedia files | |
CN102916999A (en) | Server apparatus and information processing apparatus | |
CN104615622A (en) | Document opening method and device and mobile terminal | |
US8503980B2 (en) | Providing location-based services in an ad hoc environment | |
CN103873631A (en) | Method and device for displaying call interface of mobile terminal | |
CN102316213A (en) | Portable terminal and control the method for this portable terminal | |
CN103606251B (en) | A kind of homing vector method and Set Top Box | |
CN103036929A (en) | Multimedia file processing method and network side equipment in communication system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20210914 Address after: 200083 room 4020, building A2, No. 121, Zhongshan North 1st Road, Hongkou District, Shanghai Patentee after: Hupu (Shanghai) Information Technology Co.,Ltd. Address before: Room 17815, No. 1191, dongdaming Road, Hongkou District, Shanghai 200080 Patentee before: HUPU (SHANGHAI) CULTURE COMMUNICATION Co.,Ltd. |
|
TR01 | Transfer of patent right |